Concatenation Flashcards

1
Q

Appending one string to the end of another

A

Concatenation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What will print to the console?

> > > message = ‘Hello ’ + ‘world’
print(message)

A

Hello world

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What will print to the console?

print(‘Enter the amount of ‘ +
‘sales for each day and’ +
‘press Enter.’)

A

Enter the amount of sales for each day and press Enter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What will print to the console?

> > > my_str = ‘one’ ‘two’ ‘three’
print(my_str)

A

onetwothree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly