Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how to fix this code to answer question 1 and 2 print ( ##################### #Promblem 1 ############################## ) #

how to fix this code to answer question 1 and 2
print("""#####################
#Promblem 1
##############################
""")
# Task 1
list1=[]
for i in range(10):
num = int(input("Enter an integer number: "))
list1.append(num)
print("""#####################
#Promblem 2
##############################
""")
# Task 2
list2=[]
for i in range(5):
num = int(input("Enter an integer number: "))
list2.append(num)
list2=[1,2,3,4,5] # Example list, you can modify this
list3= list1+ list2
1. Create a python program that creates a list called list1 of 10 integer numbers entered by the user. The program should then display the list.
2. Create a second list called list2 of 5 numbers and merge it with the list created in problem 1 to create a new list called list3.

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_2

Step: 3

blur-text-image_3

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

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions