Simple Operations
Strings
Floats
What is Python?
String Operations
100

What does this code output?
>>> 1 + 2 + 4

7

100

If you want to use text in python you have to use a___?

String

100

Which of these will not be stored as a float?

2/4

7.0

7

7

100

Python is...

a high-level programming language

100

Strings in Python can be added, using a process called...

Concatenation

200

What does this code output?

>>> 2 * (3 + 4)

14

200

What is the code to create a string containing “Hello world”.

>>> "Hello World"

'Hello world'

200

Floats are used in Python to represent numbers that aren't....

integers 

200

It is very popular and used by organizations such as....

Google, NASA, the CIA, and Disney.

200

Concatenation can be done on

any two strings

300

What does this code output?

>>> 10 / 2

5.0

300

Backslashes can be used to...

Escape Tabs

300

Dividing any two integers produces a....

float

300

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

300

Which line of code produces an error?

'5' + 6

"one" + "2"

"7" + 'eight'

3+4

'5' + 6

400

Parentheses are used to determine what?

Which operations are performed first.

400

How is a string created?

A string is created by entering text between two single or double quotation marks.

400

Fill in the blank with the output of this code.

>>> 1 + 2 + 3 + 4.0 + 5

15.0

400

Python is processed at runtime by the...

interpreter

400

What is the output of this code?

>>>print(4*'8')

8888

500

What does an asterisk (*) indicate?

Multiplication

500

When the Python console displays a string, it generally uses...

Single quotes

500

Extra zeros at the number's end are...

ignored

500

An interpreter is...

is a program that runs scripts written in an interpreted language such as Python.

500

What is the output of this code?

>>>print(3*'7')

777

M
e
n
u