D335 Section 2 Introduction to Python ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
(Terms) exam with correct answers ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
A computer program consists of basic instructions
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
such as: ||\\||\\
Input: A program gets data, perhaps from a file, ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
keyboard, touchscreen, network, etc. ||\\||\\ ||\\||\\ ||\\||\\
Process: A program performs computations on that ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
data, such as adding two values like x + y. ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
Output: A program puts that data somewhere, such ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
as to a file, screen, or network.
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
What is Python? ||\\||\\ ||\\||\\
a high-level general-purpose programming language.
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
Is Python an interpreted language?
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
, Yes, Python is an interpreted language. An
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
interpreted language is a programming language that ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
executes instructions directly by an interpreter.
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
When was Python originally released? ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
1991
Python 1.0 was released in what year? ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
1994
Why was it named Python? ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
The name Python came from Guido van Rossum (the
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
creator) being a fan of the TV show Monty Python. ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
The Python interpreter is ||\\||\\ ||\\||\\ ||\\||\\
a computer program that directly executes code
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
written in the Python programming language. ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
Code is a common word for ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
the textual representation of a program (and hence
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
programming is also called coding). ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
What is a statement? ||\\||\\ ||\\||\\ ||\\||\\
(Terms) exam with correct answers ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
A computer program consists of basic instructions
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
such as: ||\\||\\
Input: A program gets data, perhaps from a file, ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
keyboard, touchscreen, network, etc. ||\\||\\ ||\\||\\ ||\\||\\
Process: A program performs computations on that ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
data, such as adding two values like x + y. ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
Output: A program puts that data somewhere, such ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
as to a file, screen, or network.
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
What is Python? ||\\||\\ ||\\||\\
a high-level general-purpose programming language.
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
Is Python an interpreted language?
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
, Yes, Python is an interpreted language. An
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
interpreted language is a programming language that ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
executes instructions directly by an interpreter.
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
When was Python originally released? ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
1991
Python 1.0 was released in what year? ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
1994
Why was it named Python? ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
The name Python came from Guido van Rossum (the
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
creator) being a fan of the TV show Monty Python. ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
The Python interpreter is ||\\||\\ ||\\||\\ ||\\||\\
a computer program that directly executes code
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
written in the Python programming language. ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
Code is a common word for ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
the textual representation of a program (and hence
||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
programming is also called coding). ||\\||\\ ||\\||\\ ||\\||\\ ||\\||\\
What is a statement? ||\\||\\ ||\\||\\ ||\\||\\