69
loading...
This website collects cookies to deliver better user experience
variable_name = "value"
print()
and type the thing you want to show or the variable name:variable = 1
print(variable)
# the output : 1
Int
: integer numbers float
: number with decimal point.Str
: string, any series of characters included between quotes (double quotes " " or single quotes ' ' ).Bool
: boolean value, has one of the two values True
or False
.None
: means null, undefined variables and objects.list
: can store more than one piece of data.dict
: dictionary , used to store key-value pairs( each property associated with its own value).
age = 15 # int
pi = 3.14 # float
name = "Rawan Amr" # String
isProgrammer = True # Boolean
Nothing = None # none, we usually don't declare None variables this way , we will learn about it later
fruits = ["apple", "strawberry", "bananas"] # list
phoneBook = {
"Rawan" : "123456",
"Amr" : "678910",
"Abdulsattar" : "2468"
} # Dictionary
# I am an comment