0
Generator object
Why does this code return a generator object print(int (x) for x in input().split())
1 Answer
+ 3
Because that is what the code does... If you wanted a list for example, you could make it a list comprehension:
print([int (x) for x in input().split()])