Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the purpose of the code below? n = int ( input ( n ) ) l = [ ] for i

What is the purpose of the code below?
n = int(input("n"))
l =[]
for i in range(n):
alien = input()
alien = alien.split()
alien[0]= int(alien[0])
alien[1]= int(alien[1])/100
l.append(alien)
If you believe that more than one answer applies choose the best answer.
Group of answer choices
Collect n inputs from the terminal. Create a list of 2 lists, the first list contains n ints, the second list contains n floats.
Collect n+1 inputs from the terminal. Create a list of lists of n+1 elements, interior lists have 2 elements, the first element is an int, the second element is a float.
Collect n+1 inputs from the terminal. Create a list of 2 lists, the first list contains n ints, the second list contains n floats.
Collect n+1 inputs from the terminal. Create a list of lists of n elements, interior lists have 2 elements, the first element is an int, the second element is a float.
Collect n inputs from the terminal. Create a list of lists of n elements, interior lists have 2 elements, the first element is an int, the second element is an int too.
Collect n inputs from the terminal. Create a list of lists of n elements, interior lists have 2 elements, the first element is an int, the second element is a float.

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions