subject

Programming Objectives
With two given lists, such as [1,3,6,78,35,55] and [12,24,35,24,88,120,155], write a program to make a list whose elements are intersection (common) of the above given lists. Please note that redundant elements should be counted only once.
Technical Descriptions
Your program should interact with its user such that two lists of different number of elements can be arbitrarily specified through program input.
With the lists above as an example:
Please specify the number of elements in the first list:
6
Please specify the number of elements in the second list:
7
Input element 1 of list 1:
1
Input element 2 of list 1:
3
Input element 3 of list 1:
6
Input element 4 of list 1:
78
Input element 5 of list 1:
35
Input element 6 of list 1:
55
Input element 1 of list 2:
12
Input element 2 of list 2:
24
Input element 3 of list 2:
35
Input element 4 of list 2:
24
Input element 5 of list 2:
88
Input element 6 of list 2:
120
Input element 7 of list 2:
155
The expected output should be
Language: Python

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:30, mima851
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
image
Computers and Technology, 24.06.2019 09:00, king514
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
image
Computers and Technology, 24.06.2019 11:00, soystersoce
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
image
Computers and Technology, 24.06.2019 23:30, soapai
True or false when a host gets an ip address from a dhcp server it is said to be configured manually
Answers: 1
You know the right answer?
Programming Objectives
With two given lists, such as [1,3,6,78,35,55] and [12,24,35,24,88,120,...

Questions in other subjects: