Im stuck on creating a variable in python


Replace this line with your code.


please post your code

Declaring a variable is simple for example,

my_name = "bandit"

my_number = 10

These two are variables. One containing a string and one containing an integer.

A variable has two components,

1. variable_name

2. items stored in the variable (strings,integers,floats...etc.)


Variable also has to start with a letter or an underscore. ( _ )


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