Question: Python exercises: Create a for loop that prompts the user to enter 3 different items, then appends them to new items list Write a program

  1. Python exercises:
  1. Create a for loop that prompts the user to enter 3 different items, then appends them to new items list
  2. Write a program for removing duplicates from the list, append unique values to new list ex: a=[1,2,1,3,2,4,4,5] new_list=[1,2,3,4,5]
  3. Write a Python function to print a list where the values are square of numbers

between a and b. ex range(10,30)>>out : 100, 121,144,169,196,225,256.........900

  1. write function where two strings are given, then remove letters from first string if they are in string2

ex: string1='heyhowareyou' string2='hurray'>>>output: 'eoweo'

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!