Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python tasks: 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 tasks:
  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions