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"
In questa pagina del sito puoi guardare il video online Python Tutorial 3: Variables della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JAA228 11 novembre 2011, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8,723 volte e gli è piaciuto 37 spettatori. Buona visione!