What is the output of this code? >>> word = input("Enter a word: ") Enter a word: cheese >>> print(word + ' shop') | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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