This content originally appeared on DEV Community and was authored by E.Michael
Last week we discussed datatypes, this week we'll be talking about the assignment statement "="
The "=" is used as an assignment statement since In python programming language the machine reads the code from right to left
So,
Can also be said as the numeric value 3 is stored in the memory address of a, so when referencing a in places like,
All data types can be assigned this way,
I.e
Number= 50.56
Print(Number) / 50.56
With this, we're ready to write our first program
One to add two numbers.
It starts with the comment, like all programming languages python has comments in place, something you can type that would not be read by the computer, or be displayed when the program is run, the "#".
Program to add two numbers
Note:Use the exact case when referencing I.e "A" is not "a", python can be said to be case-sensitive.
This content originally appeared on DEV Community and was authored by E.Michael
E.Michael | Sciencx (2022-04-30T06:27:30+00:00) Programming with python 2. Retrieved from https://www.scien.cx/2022/04/30/programming-with-python-2/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.