Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Progress Monitoring Data Tracking Organizer

Authors: Teacher'S Aid Publications

1st Edition

B0B7QCNRJ1

More Books

Students also viewed these Databases questions

Question

Use brainstorming effectively.

Answered: 1 week ago

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago