defining variables python code example
Example 1: how to declare a variable in python
variable = 2
Example 2: declaring variables in python
my_name = "your name here "# you can add perenthisis
print(my_name)
Example 3: python variable
string = 'string'
integer = 5
boolean = True
Example 4: python cvariables
x = 7 #sets int as x
y = "John"# sets the string as y
print(x)#prints x
print(y)# prints y