user_numbers =[] user_input = int(input()) while user_input > 0: user_numbers.append(user_input) user_input = int(input()) What does the above code do?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question
user_numbers =[]
user_input = int(input())
while user_input > 0:
user_numbers.append(user_input)
user_input = int(input())
%3D
What does the above code do?
prints numbers
O fill-in the empty list with the user input
generates a list of 10 numbers
O none
Transcribed Image Text:user_numbers =[] user_input = int(input()) while user_input > 0: user_numbers.append(user_input) user_input = int(input()) %3D What does the above code do? prints numbers O fill-in the empty list with the user input generates a list of 10 numbers O none
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT