1 write program to ask how many squirrels are in the


How to write these python code?

1) Write program to ask how many Squirrels are in the backyard;

2) Also ask the user to provide the number of nuts in his backyard.

3) Each Squirrel is expecting to eat at least 10 nuts. If the total of nuts will not allow each Squirrel to eat at least 10 nuts, then send a message to the program user telling him: "don't get Squirrel, go and buy nuts!";

4) Otherwise, in case the number of nuts is enough, print "All squirrels are happy. Have a nice day!" and the program ends; Otherwise, go back to the step (3);

Solution Preview :

Prepared by a verified Expert
Business Economics: 1 write program to ask how many squirrels are in the
Reference No:- TGS02464624

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)