how to assign value to variable in python

Solutions on MaxInterview for how to assign value to variable in python by the best coders in the world

showing results for - "how to assign value to variable in python"
Alexander
14 May 2018
1#In Python, to assign any value to a variable, type:
2#var (name of variable) '=' (value)
3#For example:
4var num = 6
5print (num)
6#output will be: 6.
7#Don't forget to upvote this answer if it was helpful!