Input in python | Sololearn: Learn to code for FREE!

0

Input in python

How can i get list input in python3?

4/26/2021 9:51:26 AM

Fawlid

4 Answers

New Answer

+3

Fawlid First, create an empty list. Next, accept a list size from the user (i.e., the number of elements in a list) Run loop till the size of a list using a for loop and range() function. use the input() function to receive a number from a user. https://pynative.com/python-accept-list-input-from-user/

+3

https://www.sololearn.com/discuss/143971/?ref=app https://www.sololearn.com/discuss/2488112/?ref=app https://www.sololearn.com/discuss/1574286/?ref=app https://www.sololearn.com/discuss/1723747/?ref=app https://www.sololearn.com/discuss/2379246/?ref=app https://www.sololearn.com/discuss/1381502/?ref=app https://www.sololearn.com/discuss/1920742/?ref=app https://www.sololearn.com/discuss/1663186/?ref=app https://www.sololearn.com/discuss/2137276/?ref=app https://www.sololearn.com/discuss/2312207/?ref=app https://www.sololearn.com/discuss/1410520/?ref=app

+2

https://www.sololearn.com/learn/Python/2426/

0

Tnx