4. Exercise¶
Modify the previous program so that it can input a value and run for n times instead of the value 10. Assign that value to a variable named
n
.You must call your variable n for your program to pass the test, otherwise it will fail.
4.1. Summary¶
The description of a sequence of steps to solve a problem is called a computational algorithm.
Algorithms are programs (software) that determine what the computer (hardware) will do.
The process of creating software is called programming.
4.2. Remember¶
Programming languages have a formal syntax.
Computers only understand machine language.
Python is a high-level interpreted language.
The Python interpreter converts instructions command by command into machine language.
-
On a scale from 1 (needs improvement) to 3 (excellent),
how would you rate this chapter?
- 1
- 2
- 3
You have attempted of activities on this page