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

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

2014-07-19 Thread Jay Lozier
utor@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] Strange issue output not showing up as floats

2014-06-21 Thread Jay Lozier
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 ___ Tutor

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

2014-05-08 Thread Jay Lozier
is used. guess = 0 initial_guess = random.randrange(1, 100) while guess max_guess: do stuff guess += 1 Also, I would model how you would play this game efficiently against a person. Then write the "do stuff" to replicate that. Hint: you do n

Re: [Tutor] while loop

2014-03-29 Thread Jay Lozier
-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 ___ Tutor maillist - Tutor

[Tutor] Convert os.random output to a string

2014-03-06 Thread Jay Lozier
in position 0: invalid start byte I am probably missing something very obvious. Thanks in advance! -- Jay Lozier jsloz...@gmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman

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] Beginner - understanding randint arguments

2014-02-15 Thread Jay Lozier
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.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
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 python3.3 -- Jay Lozier jsloz...@gmail.com

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

2013-09-08 Thread Jay Lozier
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

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

2013-04-16 Thread Jay Lozier
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