Converting the value from string to integer in a nested dictionary
- by tom smith
I want to change the numbers in my dictionary to int values for use later in my program.
So far I have
import time
import math
x = 400
y = 300
def read_next_object(file):
obj = {}
for line in file:
if not line.strip(): continue
line = line.strip()
…