cara membuat variabel dalam python
myVar = "Hello this is a variable!")
print(myVar)
# Prints "Hello this is a variable!"
Cheerful Cassowary
myVar = "Hello this is a variable!")
print(myVar)
# Prints "Hello this is a variable!"
integer = 4 #int
string = "STRING" #string
boolean = True #Boolean. Can set it to False, too
#Set a variable equal to something
variable = 0
#This adds 1 to the variable
variable += 1
#This will print 1
print(variable)
x = 12
variable = "text" #string
variable = 125 #integer
variable = True #boolean
variable = False #boolen
variable = 125.9854 #float
my_name = "your name here "# you can add perenthisis
print(my_name)