Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

My 1st /prog/ram

Name: Anonymous 2009-03-11 19:52

So I took /prog/'s advice and started learning python:

Here is my first ever program that is not copypasted from the tutorial. (I went further by not ONLY having it say 'too high' or 'too low' or 'you guessed it')

Am I doing it right or is declaring 5 variables a waste of time?
Why cant I just say
if a < 5:
    print('way too low') #?
why does it have to be a variable?

Name: Anonymous 2009-03-12 0:05

>>16
In Python, you have to declare "self" as a first parameter of all your methods.\
[quote]It's an interpreted language[/quote]
Doesn't change the fact that its slow as shit.
[quote]Vi and emacs are just as capable of editing Python code as they are any other language.[/quote]
*Rolls eyes* whatever makes you feel hardcore bro. Notepad is capable of editing python too.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List