Text Formatting in Python
Numbers
Lists
Python Functions
BONUS
100

What do you use to backspace in python?

\b

100

How does python print numbers?

Decimals

100

How do we add a list to a list?

list[2] = [1,2,3]

100

What button do we press to run our code?

F5

100

What does break do?

Exit the loop, execute the first line after the loop

200

if s = 'hello \t there', how would interactively evaluating s return?

'hello \t there'

200

How many types of Numeric data does python support?

3


200

How do we add elements of a list to a list?

List[2:2] = [1,2,3]

200

What does re.match return if found?

Match Object

200

what does remove do to a list?

removes first element in list with given value

300

if s = 'hello /t there', what would repr(s) return?

'hello \\t there'

300

What does 3*[0] return?

[0,0,0]

300

How do we delete elements from a list?

del list[1]

300

What are three ways of creating strings from text?

single, double, triple quotes. 

300

is len a function, or a method?

function 

400

\v does what?

Creates a verticle tab. 

400

When can + and - be unary?

When preceding numeric expressions. 

400

How many elements does list[2:3] represent?

1

400

What are two ways to make multiline strings?

triple quotes, backslash

400

What does number in justification method do?

length of output string in which to justify

500

What does \n do?

Creates a new line. 

500

What is the value of x?

x does not have a value until you give x a value. 

500

how do you find the length of a list?

len(list)

500

What does range with two arguments return?

a list of integers starting at the first argument and continuing to one less than the second argument.

500

What is the big difference between strings and lists?

strings are immutable, lists are mutable.