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
Lists Exercise
Problem
Write a program that takes a list of integers called numbers and replaces
each element greater than with a Print the new version of
Expected Output
If numbers then you will print
If numbers then you will print
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 The
button will test your code with numbers Lists Exercise
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 duckdddd '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
duckdddd 'mouse', 'kite'
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
