0

Can we take 10 or inputs by usibg loop in python??

Hi friends, I have one question, suppose I want to add given numbers, can i keep code for all input numbers and add it by using any loop

23rd Dec 2019, 11:20 AM
Surya Prakash
Surya Prakash - avatar
4 Respostas
+ 2
Did you mean something like this? https://code.sololearn.com/cutLbJfqwTkO/?ref=app
23rd Dec 2019, 11:52 AM
Mark
Mark - avatar
+ 2
Works for me, if I put in three separate inputs separated by returns. I did three instead of ten, to make this easier to test and explain. But maybe you meant something else?
23rd Dec 2019, 12:27 PM
Mark
Mark - avatar
0
Getting wrong
23rd Dec 2019, 12:24 PM
Surya Prakash
Surya Prakash - avatar
0
Ok got it inputs we have to give by pressing enter
23rd Dec 2019, 12:29 PM
Surya Prakash
Surya Prakash - avatar