2009/7/1 Daniel Sato sato.ph...@gmail.com:
I have been going through some Python Programming exercises while following
the MIT OpenCourseWare Intro to CS syllabus and am having some trouble with
the first If exercise listed on this page:
On 6/30/2009 7:53 PM Daniel Sato said...
I have been able to make the module quit after entering a password three
times, but can't get it to quit right away after the correct one is
entered. I know this is really basic, please forgive me. I have no
programming experience and have just
Daniel Sato wrote:
am having some trouble with the first If
Don't forget the colon at the end of the line.
if condition:
pass
Greetings,
--
The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is
On Tue, Jun 30, 2009 at 9:53 PM, Daniel Sato sato.ph...@gmail.com wrote:
snip
I have been able to make the module quit after entering a password three
times, but can't get it to quit right away after the correct one is
entered. I know this is really basic, please forgive me. I have no
1. Pay more attention to what ends an if statement (:) also watch your
indentation.
2. Code is better than my commentary. This works the way you want it to
work.
password = qwerty
guess = 0
count = 0
while count != 3:
guess = raw_input(Enter your password: )
guess = str(guess)
Daniel Sato wrote:
I have been going through some Python Programming exercises while
following the MIT OpenCourseWare Intro to CS syllabus and am having
some trouble with the first If exercise listed on this page:
Daniel Sato wrote:
I have been going through some Python Programming exercises while
following the MIT OpenCourseWare Intro to CS syllabus and am having
some trouble with the first If exercise listed on this page:
Daniel Sato wrote:
I have been going through some Python Programming exercises while following
the MIT OpenCourseWare Intro to CS syllabus and am having some trouble with
the first If exercise listed on this page:
On Wed, Jul 1, 2009 at 3:53 AM, Daniel Satosato.ph...@gmail.com wrote:
I have been going through some Python Programming exercises while following
the MIT OpenCourseWare Intro to CS syllabus and am having some trouble with
the first If exercise listed on this page:
Daniel Sato sato.ph...@gmail.com wrote
I have been able to make the module quit after entering a password three
times, but can't get it to quit right away after the correct one is
password = qwerty
guess = 0
count = 0
while count != 3:
guess = raw_input(Enter your password: )
2009/7/1 Daniel Sato sato.ph...@gmail.com:
I have been going through some Python Programming exercises while following
the MIT OpenCourseWare Intro to CS syllabus and am having some trouble with
the first If exercise listed on this page:
I have been going through some Python Programming exercises while following
the MIT OpenCourseWare Intro to CS syllabus and am having some trouble with
the first If exercise listed on this page:
http://en.wikibooks.org/wiki/Python_Programming/Conditional_Statements#If_Exercises
I have been able
12 matches
Mail list logo