What does this code output?
>>> 1 + 2 + 4
7
If you want to use text in python you have to use a___?
String
Which of these will not be stored as a float?
2/4
7.0
7
7
Python is...
a high-level programming language
Strings in Python can be added, using a process called...
Concatenation
What does this code output?
>>> 2 * (3 + 4)
14
What is the code to create a string containing “Hello world”.
>>> "Hello World"
'Hello world'
Floats are used in Python to represent numbers that aren't....
integers
It is very popular and used by organizations such as....
Google, NASA, the CIA, and Disney.
Concatenation can be done on
any two strings
What does this code output?
>>> 10 / 2
5.0
Backslashes can be used to...
Escape Tabs
Dividing any two integers produces a....
float
Which of these statements is true?
Python code must be always compiled
Python 1.7 is the most widely used version
CPython is an implementation of Python
CPython is an implementation of Python
Which line of code produces an error?
'5' + 6
"one" + "2"
"7" + 'eight'
3+4
'5' + 6
Parentheses are used to determine what?
Which operations are performed first.
How is a string created?
A string is created by entering text between two single or double quotation marks.
Fill in the blank with the output of this code.
>>> 1 + 2 + 3 + 4.0 + 5
15.0
Python is processed at runtime by the...
interpreter
What is the output of this code?
>>>print(4*'8')
8888
What does an asterisk (*) indicate?
Multiplication
When the Python console displays a string, it generally uses...
Single quotes
Extra zeros at the number's end are...
ignored
An interpreter is...
is a program that runs scripts written in an interpreted language such as Python.
What is the output of this code?
>>>print(3*'7')
777