Answers for "python cvariables"

15

how to create a variable in python

variable1 = "value" # string
variable2 = 1000000 # integer
variable3 = 10000.0 # real/float
variable4 = True # boolean: True or False
Posted by: Guest on March-15-2020
9

python variable

string = 'string'
integer = 5
boolean = True
Posted by: Guest on January-17-2020
1

python cvariables

x = 7 #sets int as x

y = "John"# sets the string as y

print(x)#prints x 

print(y)# prints y
Posted by: Guest on June-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language