Question: Write a Python program that will perform the following sequence of the operations : A . Using random number generator, create 2 Lists ( List
Write a Python program that will perform the following sequence of the
operations :
A Using random number generator, create Lists List and
List List consist of random integer numbers that
are between inclusive List consist of random
integer numbers that are between inclusive. Display
List followed by List in separate lines.
B Create new list List that contain all elements of List
and elements of List Display List
List is created according to the following rules :
Element from List followed by element from List
followed by element from List followed by element from
Listetc.
C Display the second integer from List and then calculate and
display the number of occurrences of the second integer in
List not allowed to use count method
D Interchange the first and last element of list
E Find the minimum and the max values in List not allowed
to use min and max methods
F Create a new List List by removing all duplicate Integers
that are in List Display List and then display length of
List
G Sort the Integers in Lists in descending order from highest to
lowest. Display List Not allowed to use a sort method
H Reverse the elements of List Display the reversed List
Not allowed to use the reverse method
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
