How can I write this Funny Statement in codes..?( i.e Python)!! | Sololearn: Learn to code for FREE!

0

How can I write this Funny Statement in codes..?( i.e Python)!!

My Mom Said: "Honey, please go to the Market and buy 1 bottle of Milk. If they have Eggs, bring 6" I came back with 6 bottles of Milk. She said: "Why the hell did you buy 6 bottle of Milk?!" I said: "Because THEY HAD EGGS"

12/6/2017 8:41:53 AM

Joseph Mike

5 Answers

New Answer

+10

I think you want something like this: https://code.sololearn.com/cLh6R8bP0CIz/?ref=app Change the code according to your preferences Note - Please credit this code's maker

+11

print (" My Mom said: .....") print (" blah blah blah") print(" blahhhh blahh blahh blah") print(" You only have to use one print() ") print (" I hope you understand what i mean")

+2

Well James! I tried to analyse the statement in this way: list= ["Bottle of Milk ", "Eggs"] if Eggs in list: print(6)

+1

print(''' My Mom Said: "Honey, please go to the Market and buy 1 bottle of Milk. If they have Eggs, bring 6" I came back with 6 bottles of Milk. She said: "Why the hell did you buy 6 bottle of Milk?!" I said: "Because THEY HAD EGGS" ''')