Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 1 Lists Exercise 1 Problem Write a program that reads in a bunch of integers from the user on a single line called numbers

Exercise 1
Lists Exercise 1
Problem
Write a program that reads in a bunch of integers from the user on a single line called numbers and then will create a list of those numbers, and replace each element greater than 10 with a Print the new version of numbers.
Examine the starting code and answer the following questions:
What type before split?
What type is the variable numbers after line 2(after the input statement) is executed?
string
list
int
bool
What type after split?
What type is the variable numbers after line 3(after the split method) is executed?
string
list
int
boot
Expected Output
If the user typed in then you will print 4]
image text in transcribed

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Does it exceed two pages in length?

Answered: 1 week ago

Question

Does it avoid typos and grammatical errors?

Answered: 1 week ago