Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python, thank you Problem Write a program that takes a list of integers called and replaces each element greater than 10 with a

Please use python, thank you

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Problem Write a program that takes a list of integers called 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 - If 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 =[30,1,20,4]. The button will test your code with Problem Write a program that takes a list called (it could be a list of any data type) and prints the list three times if the length of the list is less than 5 . If the length of is greater than or equal to 5 , then print the list one time. Expected Output - If then you will print - If 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 The button will test your code with Problem Write a program that takes a list called 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 . The button will test your code with Problem Write a program that takes a list called that contains integers in a sequence (the sequence is always increasing, never decreasing). Your program should add the next two numbers in the sequence, and then print the list. Expected Output - If numbers =[1,2,3,4] then you will print - If numbers =[5,4,3,2] 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 numbers =[1,2,3,4]. The Problem Write a program that accepts a 2D list of zeros. Print the 2D list in rows and columns without the square brackets and commas. Moving diagonally from the top-left to the bottom right, replace each 0 with a 1 . The IDE already declares the variable and the 2D list Use to represent the number of rows and columns, and to represent the 2D list of zeros

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

Step: 3

blur-text-image

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

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

Use a three-step process to develop effective business messages.

Answered: 1 week ago