Sep-10-2017, 07:31 AM
It's '0'. As @Mekire said, input() returns a string so you compare 'n' which is string against an integer.
Loop question
|
Sep-10-2017, 07:31 AM
It's '0'. As @Mekire said, input() returns a string so you compare 'n' which is string against an integer.
|
|
Messages In This Thread |
Loop question - by kraven - Sep-10-2017, 06:19 AM
RE: Loop question - by Mekire - Sep-10-2017, 06:35 AM
RE: Loop question - by kraven - Sep-10-2017, 07:28 AM
RE: Loop question - by wavic - Sep-10-2017, 07:31 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Many iterations for loop question | adesimone | 9 | 3,588 |
Nov-12-2022, 07:08 PM Last Post: deanhystad |
|
Please check whether the code about the for loop question is correct. (SyntaxError) | lilliancsk01 | 10 | 4,799 |
Nov-08-2022, 01:25 PM Last Post: deanhystad |
|
Beginner Python Question: FIzz Buzz using while loop | camoyn13 | 2 | 3,498 |
Sep-20-2022, 09:00 AM Last Post: deanhystad |
|
Repeat question (for loop) | rs74 | 7 | 8,834 |
Jun-17-2020, 03:17 PM Last Post: rs74 |
|
Question about running comparisons through loop from input value | Sunioj | 2 | 3,212 |
Oct-15-2019, 03:15 PM Last Post: jefsummers |
|
while loop question | Tripler | 4 | 3,987 |
Jul-24-2018, 06:37 AM Last Post: buran |
|
Question about loop | Pires | 4 | 4,514 |
Jul-23-2017, 03:01 AM Last Post: Pires |
|
Udacity while loop question | liquidmetalrob | 6 | 6,695 |
Jul-21-2017, 02:56 PM Last Post: nilamo |