Duration 12:17

Python variables

63 797 watched
0
3 K
Published 21 Dec 2020

Python variables tutorial example explained #python #variables #tutorial #variable = a container for a value. Behaves as the value that it contains #string = a series of characters first_name = "Bro" last_name = "Code" full_name = first_name +" "+ last_name print("Hello "+full_name) # print(type(first_name)) #int = a whole integer age = 21 age += 1 print("Your age is: "+str(age)) # print(type(age)) #float = a decimal number height = 250.5 print("Your height is: "+str(height)+"cm") # print(type(height)) #boolean = True or False human = True print("Are you a human: "+str(human)) # print(type(human)) –––––––––––––––––––––––––––––– Up In My Jam (All Of A Sudden) by - Kubbi https://soundcloud.com/kubbi Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0 Free Download / Stream: http://bit.ly/2JnDfCE Music promoted by Audio Library /watch/INo64jBxeDtx6 ––––––––––––––––––––––––––––––

Category

Show more

Comments - 150