how do you create a variable?


To create a variable in python, you simply type out whatever you want the name of the variable to be and set it equal to an acceptable value. Here are some examples:

myVariable = 14
something = True
nothing = False
somethingElse = "This is a string."


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.