How to input a list by taking input from the user in python
Answers
Answered by
2
To add them to our list, we call the .append() method on our_list: our_list = [] # create empty list. first_num = int(input('Enter first number: ')) second_num = int(input('Enter second number: ')) third_num = int(input('Enter third number: ')) our_list.append(first_num) our_list.append(second_num)
Anonymous:
Don't copy
Answered by
1
Answer:
Explanation:
This is free online complete course 2020. learn from basic to advanced and get job easily. Here you will learn all concept of python like basic to advanced course, python libraries. Step by Step. more than 5 lac student. easy to learn.
Similar questions
Sociology,
7 months ago