Question: Make sure you write all your programs to work with other numeric values ( other than the given ones ) as well Q 1 )

Make sure you write all your programs to work with other numeric values (other than the given ones) as well
Q1) The following numbers are given :
1587412159823245642
Create a method called "find_rep" that takes these numbers as a tuple argument, finds and displays the amount of repetitions for each member in the given set.
The output of the program is as follows:
]
[{4:3},{5:3},{6:1},{4:3},{2:4}
Hint: the output is a list with nested dictionary members.
Q2) The following numbers are given :
Tu1=12,58,74,63,95,62,77
Tu2=74,88,65,14,73,67,89
Create a method called "common_finder" that takes these 2 tuples as arguments, finds and returns if there is at least one common member in these tuples. In case there exists no items that match, the output is "No Match". In case there is a match (where the match is found as 74), the output is :
The number is:74
 Make sure you write all your programs to work with other

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!