Read the story below and write a python program for it
Sonu has a mathematics exam today his mother told him that if he is course more than 90 then she will buy him a chocolate candy.
she give other options too she said if Sonu scores more than 80 she will buy him a strawberry candy and if he scores more than 70 she will buy him a orange candy
Answers
Answered by
1
Explanation:
>>>name=raw_input("Your name")
Your name: Sonu
print "the conditions for getting a candy"
if, marks=raw_input("more than or 90")
then print= int(he will get a chocolate candy)
if, marks=raw_input("more than or 80")
then print= int(he will get a strawberry candy)
if, marks=raw_input("more than or 70)
then print=int(he will get a orange candy)
<<<
Similar questions