the Python interpreter's job is to execute programs, composed of statements.
Question
What does the Python interpreter do?
Answer
?
Question
What does the Python interpreter do?
Answer
the Python interpreter's job is to execute programs, composed of statements.
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it At its highest level, the Python interpreter's job is to execute programs,
composed of statements. However, much of the interesting work of computation
comes from evaluating expressions. Statements govern the relationship among
different expressions in a program and what happens to t
Original toplevel document
1.5 Control gt;> def square(x):
return mul(x, x)
Sometimes it does make sense to have a function whose body is an expression,
when a non-pure function like print is called.
>>> def print_square(x):
print(square(x))
<span>At its highest level, the Python interpreter's job is to execute programs,
composed of statements. However, much of the interesting work of computation
comes from evaluating expressions. Statements govern the relationship among
different expressions in a program and what happens to their results.
1.5.2 Compound Statements
In general, Python code is a sequence of statements. A simple statement is a
single line that doesn't end in a colon. A compound statement is so call
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.