MOAR MERMAIDS!!!
http://fc01.deviantart.net/fs26/i/20...y_KillWOLF.jpg
Printable View
MOAR MERMAIDS!!!
http://fc01.deviantart.net/fs26/i/20...y_KillWOLF.jpg
I've submitted three new things in the past day and a half, I've been busy!
Oh and I've also started my website on Monday too.
Jeez Louise
print ("I'm learning Python now!")
Well I feel proud of myself. In about a day I taught myself the basics of Python. I got down: declaring variables, getting input, displaying output, setting up my own functions, setting up classes, and basic IO functions.
python Code:
class person: name = "" age = 0 height_feet = 0 height_inches = 0 weight = 0 david = person david.name = "David" david.age = 22 david.height_feet = 5 david.height_inches = 10 david.weight = 165 print ("Name : " + david.name) print ("Age : " + str(david.age)) print ("Height(ft): " + str(david.height_feet)) print ("Height(in): " + str(david.height_inches)) print ("Weight : " + str(david.weight))
So - I take in the BLANK line is a CODE-BLOCK delimiter - right?
Nope, the interpreter ignores the blank line. The CODE-BLOCK delimiter is the indentation in the class. The same can be said for the loops:
python Code:
i = 0 while i < 9 i += 1 print (str(i))
Ok - that's cool - simple enough...
I knew it had to be "something" that made that CLASS definition END...
Yeah, it kind of confused me because in Visual Basic you have End and then Sub/Function/Class/Module/Etc. and in C# you wrap code in {} so I was kind of confused at first.
Still better than a semicolon.
u dis'in proper SQL?
I've done so much C++ and JavaScript in the past two years that the semi-colon is a natural for me now!