+ 1

What is the output of this code? >>> word = input("Enter a word: ") Enter a word: cheese >>> print(word + ' shop')

i think the answer should be cheeseshop instead of cheese shop

7th Dec 2018, 7:17 AM
Mr.Waghmare Balkrushana Hanumant
Mr.Waghmare Balkrushana Hanumant - avatar
1 Resposta
+ 3
You might have missed it, but there's a space before shop in ' shop'. So the space gets printed between cheese and shop.
7th Dec 2018, 7:24 AM
Kishalaya Saha
Kishalaya Saha - avatar