Computer Science, asked by manovirajpant, 8 months ago

u get 100 rs from your mother now the difficult part comes - which ice cream to buy butterscotch ribbon(2nd choice) and melted chocolate fudge (1st choice) which is your favorite. you decide to check the price and buy. write a python program to get the cost of the ice creams and print which one to buy

Answers

Answered by ItzAditt007
11

AnswEr:-

As in the question the price of both ice creams are not given so let us assume the price of butter scotch ribbon be 90 Rupees and the cost of chocolate fudge be Rupees 80.

Now Let us make the program and define the prices of both icecreams.

(I am assuming that I am writing this program in python idle)

=》 Butter_scotch_Ribbon = "90 Rupees."

=》 Butter_scotch_Ribbon = "90 Rupees."=》 Chocolate_fudge = "80 Rupees."

(Now to get prices we simyply write:-)

=》print(Butter_scotch_Ribbon)

=》print(Butter_scotch_Ribbon)=》 print(Chocolate_fudge)

(Now our favourite is Chocolate fudge (say) So we will buy it)

=》 Print("Chocoloate fudge")

Attachments:
Similar questions