Covers how to create five types of variables in Python which can be used to store information in. The five types of variables discussed are integers, floats, characters, strings, and Boolean.Demonstrated on Mac OS X.
Please comment, rate, and/or subscribe ; )
Link:
http://www.python.org/download/ - Download Python
Code used in this video:
var_integer = 76 #create an integer variable called 'var_integer'
#with a value of 76.
var_integer #when the variable named is entered the IDLE interpreter
#returns its value ie: 76
var_double = 7.25 #create a float (double) variable called 'var_double'
#with a value of 7.25
var_double #when the variable named is entered the IDLE interpreter
#returns its value ie: 7.25
var_char = '#' #create a character variable called 'var_char'
#with the '#' symbol saved in it
var_char = #when the variable named is entered the IDLE interpreter
#returns its value ie: '#'
var_string = "this is a string variable" #create a string variable called 'var_string'
#with the value "this is a string variable"
var_string #when the variable named is entered the IDLE interpreter
#returns its value ie: "this is a string variable"
var_bool = True #create a boolean variable called 'var_bool'
#with a value of True
var_bool #when the variable named is entered the IDLE interpreter
#returns its value ie: "this is a string variable"
Auf dieser Seite können Sie das Online-Video Python Tutorial 3: Variables mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer JAA228 11 November 2011 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,723 Mal angesehen und es wurde von 37 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!