Appending one string to the end of another
Concatenation
What will print to the console?
> > > message = ‘Hello ’ + ‘world’
print(message)
Hello world
What will print to the console?
print(‘Enter the amount of ‘ +
‘sales for each day and’ +
‘press Enter.’)
Enter the amount of sales for each day and press Enter.
What will print to the console?
> > > my_str = ‘one’ ‘two’ ‘three’
print(my_str)
onetwothree