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
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
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
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
-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
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
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
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
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
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
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
11 matches
Mail list logo