I'll be asleep by the (hopefully) but please don't make it more complicated than it already is..
So at the end of the day we have a huge bunch of users somewhere between scared and disgruntled because we regulars and ROs couldn't be bothered to educate new users
A registration and login program I made in python that runs through the terminal. I am new to programming so I didn't have any actual use for this, I simply made it for practice. If anyone could give me tips on minimizing code and making things shorter, and also point out any bad programming prac...
Disclaimer: I understand the code may not work 100%, as I see issues already, but the core thing I am looking for help with is moving the duplicated for loop out of the function and into its own, while still keeping the general flow.
So I have a method that, for does what I want it to do, it sea...
I wrote script that test monophyly by computing Bayes Factor on sample of tree from Bayesian MCMC analysis from MrBayes and BEAST posterior tree sample files. This is natural way how I write code, but I am looking for improvement. I am trying to read some theoretical articles and other code, but ...
This seems to be about the right place to post a response to what happened in the chat room today, and in the past 6 weeks or so.
Since various names have come up, and people have posted here too, I won't make it all anonymous, but will use concrete examples instead.
I also want to stress that ...
Given an array of words and a length L, format the text such that each
line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many
words as you can in each line. Pad extra spaces ' ' when necessary so
...
What are your values in a, b, x, y, also, in I'd add () to make things a bit clearer: a>= x && a <= (x + videoScale). It's a personal choice thing, but if it came to me in a code review you'd be adding the ()'s ;-) — John313649 secs ago
@EthanBierlein Nothing really. it just need some leg work to remember the basics :P Doing some Sage atm and forgetting more Python than Fourier transformation
@SirPython that is one hell of a three pager answer
Before you read ...
Personally, I follow @TimPost's ideology:
My 'razor' for such things (well, actually most things) "When in doubt, don't."
I would even say I've deleted or stopped writing what I was going to post more times than I've actually posted.
As @rolfl pointed out, I've been of...
I have a csv 5+ million rows I want to filter it.
with open("test1.csv") as csv_file:
writer =csv.writer(outputfile, delimiter=',')
for row in csv.reader(csv_file, delimiter=','):
row = [int(x) for x in row]
for i in range (1,11):
if add_i (row) == True:
...