xxxxxxxxxx
# To assign a value to a variable in Python
# You type the name of the variable, then the equal sign
# Then the value
# It should look something like below:
name = "McDonald"
# 'name' is the name of the variable
# '=' means that you are assigning a value to a variable
# ' "McDonald" ' is the value of the variable in this case the variable type is a string
# You can read the value of the variable by printing it like below:
print(name)
# The output would be 'McDonald'
# By Vybranium
xxxxxxxxxx
#In Python, to assign any value to a variable, type:
#var (name of variable) '=' (value)
#For example:
var num = 6
print (num)
#output will be: 6.
#Don't forget to upvote this answer if it was helpful!