Python Tutorial 3: Variables

Publié le: 11 novembre 2011
sur la chaîne: 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"


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial 3: Variables durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur JAA228 11 novembre 2011, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 8,723 fois et il a aimé 37 téléspectateurs. Bon visionnage!