+ 1

Storing user input in python

How do I store user input? This doesn’t work because it erases inp each time inp=[] inp.append(input("")) print (inp)

27th May 2018, 1:31 PM
...
... - avatar
2 Respostas
+ 5
You can store the input in a file: https://code.sololearn.com/ccLLrPSie1E6/?ref=app
27th May 2018, 1:53 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
ok thanks!
27th May 2018, 2:32 PM
...
... - avatar