Re: [Tutor] How did this decimal error pop up?

2013-04-16 Thread Jay Lozier
d occur. Often it is suitable error because one does not spot that an intermediate calculation is incorrectly implemented. -- Jay Lozier jsloz...@gmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Won't run. Syntax Error.

2013-09-08 Thread Jay Lozier
e runs correctly as written. There are no error messages. I was able to run the code without any errors. I copied and pasted the code into a text editor (Notepad on Windows or idle3) and removed the extraneous prompts, echoed output, and spaces. When saving the file the extension should be *.py.as in pizza.py -- Jay Lozier jsloz...@gmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python 3.3 on OpenSUSE 12.3

2013-10-24 Thread Jay Lozier
ally able to help > me, so I was wondering I give it a try here. > Thanks, > Rafael Rafael, I have both Python 2.7.3 and 3.3.0 installed on openSUSE 12.3. To use 3.3 I enter python3.3 at the prompt. If I enter python it defaults to 2.7.3 In the shebang #!/usr/bin/env pyt

Re: [Tutor] Beginner - understanding randint arguments

2014-02-15 Thread Jay Lozier
, Marc* * The variables low_range and high_range are not modified. The arguments to random.randint do not change the initial values of the variables, only the actual values passed. -- Jay Lozier jsloz...@gmail.com ___ Tutor maillist - Tutor@python.or

[Tutor] Convert os.random output to a string

2014-03-06 Thread Jay Lozier
"", line 1, in UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 0: invalid start byte >>> I am probably missing something very obvious. Thanks in advance! -- Jay Lozier jsloz...@gmail.com ___ Tuto

Re: [Tutor] Convert os.random output to a string

2014-03-06 Thread Jay Lozier
Alan I am planning to store the passwords encrypted. This part is allow a user to generate and view the generated password. Ben got me pointed to a snippet I can use. I was trying to do something the hard way. Jay On 03/06/2014 07:34 PM, Alan Gauld wrote: On 06/03/14 23:32, Jay Lozier

Re: [Tutor] while loop

2014-03-28 Thread Jay Lozier
tes over the range from 0 to n-1 (5 times). I included the index variable in the print to show the increase of the index. The results for both: 0 some string 1 some string 2 some string 3 some string 4 some string -- Jay Lozier jsloz...@gmail.com _

Re: [Tutor] (no subject) - (added) Number guessing game

2014-05-08 Thread Jay Lozier
ly against a person. Then write the "do stuff" to replicate that. Hint: you do not need to generate random guesses within the while loop. -- Jay Lozier jsloz...@gmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Strange issue output not showing up as floats

2014-06-21 Thread Jay Lozier
Deb, Can you show us your full code listing or if it is lengthy the relevant section showing the print statement. My guess is your print formating is not specified correctly and it is rounding to the nearest whole number. Jay -- Jay Lozier jsloz...@gmail.com _

Re: [Tutor] Read, Write, Split and Append lines from a text file

2014-07-19 Thread Jay Lozier
LN ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor -- Jay Lozier jsloz...@gmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] New blog that has solution for python programs

2017-06-03 Thread Jay Lozier
On 06/02/2017 09:07 PM, Mats Wichmann wrote: I don't think "what the authors might want" is the only factor here. Personally, I think these programming challenge sites probably do more harm than good, discouraging people that they're not good enough to be a programmer because they can't solve t