+ 2
Hi, how to int(input()) but only take the first 10 integers from the input to input-variable?
foo = int(input()) python
4 Antworten
+ 1
l = [int(input()) for i in range(10)]
+ 1
THX. the variable will get the Entry as a list, right?
+ 1
Yes, as this is how I decided to, but it can be changed ^^
+ 1
:-)