|
General Details
|
|
Python
|
|
Posted 234 Days Ago
|
|
294 Views
|
|
Received 0 Ratings
|
|
Random Figure Placer
Description
Yeah, I got bored and this is what I came up with.
Technical
Compiler: Python 2.5.2
OS: Any
Source Code
Comments
| Please login to post comments. |
|
|
VBAssassin, not sure what you mean. Essentially, the for loop and the while loop in python take up the same space: one line. My stuff is what takes up the rest, i tend to do everything the long way (yes, it's retarded) by habit. However, I did change it up a bit and change it to += instead of the variable plus 1.
|
|
|
why not use for loops instead? since thats pretty much what that while is doing... except in more lines.
|
|
|
Oh yeah, you could. I was bored and it was late at night though so...heh.
|
|
|
Or you could do x++, unless that won't work in Python...
|
|
|
Can you not do this in python? been so long since i've done python i really can't remember myself..
x=x+1
to
x+=1
Kind regards,
Scott
|
More "Python" Source Codes By This Author
Recently Posted "Python" Source Codes
Recently Rated "Python" Source Codes
|