Python 3 Tutorial: 4 - Variables
Loading...
6,739
Loading...
Uploader Comments (TheMonkeyLords)
Top Comments
-
This is like LOGO!
see all
All Comments (23)
-
8==D~~~~( . Y . )
-
Just type the name of the variable to call it, no need to print =)
-
Snow is falling, All around me, Children playing, Having fun. It's the season, For love and understanding, Merry christmas everyone. Time for parties and celebration, People dancing all night long, Time for presents, And exchanging kisses, Time for singing christmas songs. We're gonna have a party tonight, I'm gonna find that girl underneath the misteltoe, We'll kiss by candlelight.
-
hello :)
-
@silvertreasure i like treasure.... in a dirty way!!!!!
-
Really cause idc... all i like is python up my bum!!!!!!!!!
-
really nice tutorials, nice voice, nice speed. even as a not native speaker I can follow perfectly
-
@DaKrazyJak actually you can have numbers in variables, but they must have a letter at the beginning.
Loading...
what if ı want to give value a name. like 5=hello instead of hello=5 and of course when i type the 5 it will bring hello...is it possible??
thanks...
heee2 1 year ago
@heee2 No, it isn't. You aren't allowed to have numbers as variables, because numbers are numbers. Because if you did that, you would never be able to use the number 5 in a program.
TheMonkeyLords 1 year ago 7
For some reason when i do the variable it dosent work. My code is x = input("type a number")
print 1 + x
ISJHman44 1 year ago
@ISJHman44 Hmm...did you forget to put parentheses for the print statement around the 1 + x?
TheMonkeyLords 1 year ago