Question: PYTHON- For example you are NOT allowed to use set() , intersection() etc For taking the input lists you can use .split() to get the

PYTHON- For example you are NOT allowed to use set() , intersection() etc For taking the input lists you can use .split() to get the individual numbers.

Given two lists of numbers output the numbers which are in both lists. Note: You may assume no numbers are repeated within a single list

Sample output: Please enter a list of numbers: 1523 Please enter a second list of numbers: 561 The numbers in both lists are: 1 5

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!