+ 3
How to get user input using for loop in python ?
3 Answers
+ 5
Let's say you want to take n inputs. So run a for loop n times and take the input in the required type.
For eg:
To take n integer inputs:
for _ in range (n) :
a=int(input())
+ 1
Thanks a lot guys âșïž