Question: Write an algorithm and a python program to create two lists. Find the common terms in the two lists in sorted Order by removing the

 Write an algorithm and a python program to create two lists.

Write an algorithm and a python program to create two lists. Find the common terms in the two lists in sorted Order by removing the duplicates using functions. The two lists have to be created by the following instructions for each list get a positive integer value from the user. If it is an even number, divide the value by 2 or if it is an odd value multiply the value by 3 and add 1. Repeat it until the item value reaches 1 Input Positive integer for List Positive integer for Ust-2 Output List 1 terms List 2 terms List of Common terms in sorted order Answer: (penalty regime 0')

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!