Timeline for Python while loops
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 20, 2019 at 11:52 | answer | added | Vito Kekin | timeline score: 0 | |
| S Dec 28, 2012 at 0:02 | history | suggested | Community Bot | CC BY-SA 3.0 |
input is python 3, raw_input python 2.x
|
| Dec 28, 2012 at 0:00 | comment | added | Ry-♦ |
@poorsod: There are no parentheses on print.
|
|
| Dec 27, 2012 at 23:53 | review | Suggested edits | |||
| S Dec 28, 2012 at 0:02 | |||||
| Dec 27, 2012 at 23:24 | comment | added | DSM |
If the OP were using Python 3, then the print statement would be a SyntaxError.
|
|
| Dec 27, 2012 at 23:22 | answer | added | Stuart | timeline score: 4 | |
| Dec 27, 2012 at 23:20 | comment | added | Benjamin Hodgson | @minitech OP might be using Python 3 | |
| Dec 27, 2012 at 22:51 | answer | added | Roland Smith | timeline score: 10 | |
| Dec 27, 2012 at 22:50 | answer | added | Foggzie | timeline score: 2 | |
| Dec 27, 2012 at 22:49 | comment | added | Daniel Figueroa |
Also if ttt >= 2 will always evaluate to true the first time in the loop, is this really the behaviour you want?
|
|
| Dec 27, 2012 at 22:49 | comment | added | demux | Maybe this is what you're after: stackoverflow.com/questions/354038/… | |
| Dec 27, 2012 at 22:47 | comment | added | Ry-♦ |
Use raw_input, not input.
|
|
| Dec 27, 2012 at 22:45 | history | asked | miguel | CC BY-SA 3.0 |