filmov
tv
#2 Expressions, Numbers. Python #Programming Lessons for Beginners. #learncoding #learnpython

Показать описание
## Slide 1
Hello, Python!
Let's [Learn Programming]{.coral-text}
From Scratch!!!
Here's Our Second
Python Program:
^^^ 42
## Slide 2
^^^ 42
Yes, `42` is Again
A Complete ["Program".]
This `42` is Also
An ["Expression",]
Which Happens to be
A Single ["Number".]
The ["Value"] of Number `42`
Is ...
`42`.
## Slide 3
There are Three Kinds of
Numbers in Python:
- Integers,
* E.g., `1`, `2`, `-10`, ...
- Float Numbers,
* E.g., `3.14`, `10.0`, ...
- Imaginary Numbers,
* E.g., `5j`, `2.5J`, ...
## Slide 4
^^^ 2 + 3
The "Expression", `2 + 3`,
In this Example
Tells the Python Interpreter to
"Evaluate" this Expression.
Now, Let's Run this
"Single Expression Program":
^^^ 2 + 3
5
`5` is the "Output" of this Program.
## Slide 5
Exercises :grin:
So, What Do You _Think_ is
- An "Expression"?
- A "Value"?
- An "Evaluation"? And
- A "Program"?
## Slide 6
Learn Programming
For 60 Seconds a Day!
See You All in the Next Lesson!
Hello, Python!
Let's [Learn Programming]{.coral-text}
From Scratch!!!
Here's Our Second
Python Program:
^^^ 42
## Slide 2
^^^ 42
Yes, `42` is Again
A Complete ["Program".]
This `42` is Also
An ["Expression",]
Which Happens to be
A Single ["Number".]
The ["Value"] of Number `42`
Is ...
`42`.
## Slide 3
There are Three Kinds of
Numbers in Python:
- Integers,
* E.g., `1`, `2`, `-10`, ...
- Float Numbers,
* E.g., `3.14`, `10.0`, ...
- Imaginary Numbers,
* E.g., `5j`, `2.5J`, ...
## Slide 4
^^^ 2 + 3
The "Expression", `2 + 3`,
In this Example
Tells the Python Interpreter to
"Evaluate" this Expression.
Now, Let's Run this
"Single Expression Program":
^^^ 2 + 3
5
`5` is the "Output" of this Program.
## Slide 5
Exercises :grin:
So, What Do You _Think_ is
- An "Expression"?
- A "Value"?
- An "Evaluation"? And
- A "Program"?
## Slide 6
Learn Programming
For 60 Seconds a Day!
See You All in the Next Lesson!