Python Tutorial 3: Variables

Publicado el: 11 noviembre 2011
en el canal de: JAA228
8,723
37

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"


En esta página del sitio puede ver el video en línea Python Tutorial 3: Variables de Duración hora minuto segunda en buena calidad , que subió el usuario JAA228 11 noviembre 2011, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 8,723 veces y le gustó 37 a los espectadores. Disfruta viendo!