1. Write a python program to create a list of integers using random function. Use map...

80.2K

Verified Solution

Question

Programming

1. Write a python program to create a list of integers usingrandom function. Use map function to process the list on theexpression: 3x2+4x+5 and store the mapped elements in another list.Now use filter to do sum of all the elements in another list.

2. Write a function that takes n as input and creates a list ofn lists such that ith list contains first 10 multiples of i.

3. Write a function that takes a number as input parameter andreturns the corresponding text in word. For example, on input 458,the function should return ‘Four Five Eight’. Use dictionary formapping digits to their string representation.

4. Write a program to create two sets of integer type usingrandom function. Perform following operations on these twosets:

a) Union

b) Intersection

c) Difference

d) Symmetric difference

Answer & Explanation Solved by verified expert
4.4 Ratings (783 Votes)
Problem 1import randomdef myfuncxreturn 324x5x randomsamplerange10 30 5y mapmyfunc xconvert the map into a list for    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students