On Wednesday, October 5, 2016 at 12:57:14 PM UTC-5, Malcolm Greene wrote:
> Looking for a quick way to calculate lines of code/comments in a
> collection of Python scripts. This isn't a LOC per day per developer
> type analysis - I'm looking for a metric to quickly judge the complexity
> of a set o
On Wednesday, December 2, 2015 at 12:58:30 PM UTC-6, Dylan Riley wrote:
> hi all,
> I have been trying to figure out all day why my code is printing single
> characters from my list when i print random elements using random.choice the
> elements in the list are not single characters for example w
fname = raw_input("Enter file name: ")
if len(fname) < 1 :
fname = "mbox-short.txt"
for line in fname:
line = line.strip()
if not line.startwith('From '):
continue
line = line.split()
count = count + 1
You need to actually open t
On Thursday, June 18, 2015 at 6:11:11 AM UTC-4, Productivi .co wrote:
> What are your best time saving tips when programming Python?
PyCharm!
--
https://mail.python.org/mailman/listinfo/python-list
Welcome to the world of Python programming! I'm glad you're learning this great
language.
As to your bug, think about this: in each if or elif statement, you're reading
the user input again, so if user input is NOT equal to 1 in the first place, it
reads input again. Try to step through your c