Question: num _ lemons = int ( input ( ) ) my _ money = int ( input ( ) ) num _ lemons > =

num_lemons = int(input())
my_money = int(input())
num_lemons >=5
total_cost = num_lemons *3
total_cost >=5
if total_cost <= my_money :
print('Lemons successfully purchased')
if total_cost > my_money :
print('Need more money to purchase all')
if num_lemons <=5 :
print('Not allowed to purchase less than 5 lemons')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!