Illustrating concatenation of texts(strings) and variables in python
Wed Jan 24 2024 18:29:32 GMT+0000 (Coordinated Universal Time)
Saved by
@Realencoder
print("THE ULTIMATE BLAND RICE RECIPE GENERATOR")
print("Answer the few questions given below to create a perfect recipe for you")
name = input("What's your name?")
step = input("What's the necessary step required before you start cooking the rice (answer in one word)?")
ratio = input("The ratio of water to rice should be_____for the rice to be cooked perfectly")
utensil = input("What's your prefered utensil for rice cooking?:")
minutes = input("How long should the rice be cooked for?(Answer in minutes)")
serve = input("What would you serve the rice with?")
print(name, "thinks that in order to cook rice you need to first" ,step, "it" ,"You should then add water and rice in the ratio of" ,ratio, "into a", utensil, "and allow it to cook for" ,minutes, "After that you should serve the rice with" ,serve,)
print("You" ,name, "should be prepared to eat alone😂.")
print()
print("Thank you for rolling out with this programme😁")
content_copyCOPY
Comments