Question: write a program in python Take two lists as input from user. The lists are named as cat_1 and cat_2 . The lists contain the

write a program in python

Take two lists as input from user. The lists are named as cat_1 and cat_2. The lists contain the daily weights of two cats over a period of ten days.

Write statements to do the following:

  1. If the weight of cat_1 is greater than that of cat_2 on day 1, print " cat_1 weighed more than cat_2 on Day 1."; otherwise, print " cat_1 weighed less than cat_2 on Day 1."
  2. If cat_1 weighed more than cat_2 on day 1 and if cat_1 weighs more than cat_2 on the last day, print " cat_1 remained heavier than cat_2."; otherwise, print " cat_2 became heavier than cat_1."
  3. If your solution to the previous question used nested if statements, then do it without nesting, or vice versa.

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 Databases Questions!