variable-types

int unexpectedly turning into string

int unexpectedly turning into string Question: With the following snippet from a script: Tile = SelectTile() int(Tile) TileY = Tile TileX = 0 #Temporary debug: print("type of tile is: ", type(Tile), "type of TileY is: ", type(TileY)) I expected the outcome to be: type of tile is: <class ‘int’> type of TileY is: <class ‘int’> …

Total answers: 1