[Tutor] Python question

Mark Lawrence breamoreboy at gmail.com
Mon Nov 2 05:44:54 EST 2020


On 02/11/2020 07:58, jasmine wrote:
> Hi,
> I was wondering how can I allow a user to input an arbitrary number of
> names? (im using the version 2020.2.1)
> thank you.
> 

As we don't write your code you'll need to read the names and append 
them to a list.  From the index here 
https://docs.python.org/3/genindex.html you should be able to find 
'input', 'while' and 'list'.  You're not using Python 2020.2.1 as the 
latest version is 3.9.0, I'd guess that's your IDE you're referring to.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list