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-11 22:17

>>15
How about all the self() bullshit?
I don't know what language you think you're talking about, but it's not Python.

What about how retarded it is to save three characters and make the code less english like with elif instead of else if.
else: if: works just fine, if you're that confused by two-syllable keywords.

How about that it is slow as shit. Even ironpython is slow as shit.
It's an interpreted language. It compares very favorably to other scripting languages.

How about that there exists no fully featured IDE for it?
Vi and emacs are just as capable of editing Python code as they are any other language.

Man thats 4 solid criticisms and I've never even coded in python.
You don't say.

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