Concatenation Flashcards
1
Q
Appending one string to the end of another
A
Concatenation
2
Q
What will print to the console?
> > > message = ‘Hello ’ + ‘world’
print(message)
A
Hello world
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.
4
Q
What will print to the console?
> > > my_str = ‘one’ ‘two’ ‘three’
print(my_str)
A
onetwothree