#5 - Variables - A box to our data
Variables
We just now wrote our first program but we will rarely output such hard-coded text. Mostly we output some data that is stored in a variable. So now let's learn about Variables.
What are Variables?
Variables are like containers containing a specific value that can be accessed anywhere in the code using the variable name. A variable name must start with a letter or an underscore( _ ) and they are case-sensitive and can only contain alpha-numeric characters and underscores. Use an equal sign ( = ) to assign a variable.
code:-
output:-
We are learning Python.
intresting
ReplyDeleteReally easy to make a variable.
ReplyDelete