Python Tutorial 3: Variables

Опубликовано: 11 Ноябрь 2011
на канале: 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"


На этой странице сайта вы можете посмотреть видео онлайн Python Tutorial 3: Variables длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь JAA228 11 Ноябрь 2011, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 8,723 раз и оно понравилось 37 зрителям. Приятного просмотра!