The input is integers separated by a space in the form below: 180 141 142 175 162
busnumbers = input().split()
for n in busnumbers:
n = int(n)
I want busnumbers = [ 180,141,142,175,162] Instead, I have ['180','141','142','175','162'] Why isn't the conversion working?