I have the following python code:
playerlocation =(input("Player location?"))
playerlocation = list(playerlocation.split(","))
for x in playerlocation:
try:
x = int(x)
coordsareintegers = True
print(playerlocation)
except:
coordsareintegers = False
When I print X, it should logically be printed as int but instead they are printed as string. Am I going wrong somewhere?