Im stuck on creating a variable in python


#1



Replace this line with your code.


#2

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.)


#3

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


#4

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