Question: Exercise 1 Lists Exercise 1 Problem Write a program that takes a list of integers called numbers and replaces each element greater than 1 0

Exercise 1
Lists Exercise 1
Problem
Write a program that takes a list of integers called numbers and replaces
each element greater than 10 with a '**'. Print the new version of
Expected Output
If numbers =[30,1,20,4] then you will print ['',4]
If numbers =[5,9,11,23] then you will print 5,9,?'**',?'**'
> Hint
Important
Do not edit the code in the top section. This code is necessary for the auto-
grader to work. Add your code in the section below.
Testing Your Code
The button will test your code with numbers =[30,1,20,4]. The
button will test your code with numbers =[5,9,11,23]Lists Exercise 3
Problem
Write a program that takes a list called strings that contains a random
selection of strings. Your program should print the first string when arranged
in alphabetical order.
Expected Output
If strings =['luck', 'cat', 'kid', 'house'] then you will print
If strings =['duck','dddd', 'mouse', 'kite'] then you will print
Important
Do not edit the code in the top section. This code is necessary for the auto-
grader to work. Add your code in the section below.
Testing Your Code
The button will test your code with strings =['luck', 'cat',
'kid', 'house']. The button will test your code with strings =
['duck','dddd', 'mouse', 'kite'].
 Exercise 1 Lists Exercise 1 Problem Write a program that takes

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!