Slides 1
Slides 1
To bake a cake:
1. Combine sugar and butter
2. Beat in eggs
3. Add flour
4. Add milk
5. Bake in oven
How do we tell a computer what to do?
To communicate amongst ourselves we use human languages (for example, English)
Otherwise:
The number is prime! Report that
Program Abstraction
Input Stream
input()
Python Program
print()
Output Stream
First demo: my first program
Go to: https://www.programiz.com/python-programming/online-compiler/
Learning goals:
Pop Quiz 1:
Learning goals:
Learning goals:
If we run this program and write the number "3" on the terminal, what would be its output?
One more demo: A polite program now complete
Learning goals:
Go to: https://codeforces.com/group/K1Fxw6skwV/contests
What’s next?
Homework will be posted on Piazza by tomorrow! You won’t learn anything if you
don’t try the homeworks