My list looks like this:

```
print(dataset[0:2])

```

which gives:

```
[{'date': '13/09/2020', 'day': '13', 'month': '9', 'year': '2020', 'cases': '35', 'deaths': '0', 'countriesAndTerritories': 'Afghanistan', 'countryTerritoryId': 'AF', 'countryTerritoryCode': 'AFG', 'population2019': '38041757', 'continent': 'Asia', 'cumulativeper1000002Weeks': '1.3090878'}, {'date': '12/9/20', 'day': '12', 'month': '9', 'year': '2020', 'cases': '34', 'deaths': '0', 'countriesAndTerritories': 'Afghanistan', 'countryTerritoryId': 'AF', 'countryTerritoryCode': 'AFG', 'population2019': '38041757', 'continent': 'Asia', 'cumulativeper1000002Weeks': '1.22496971'}]

```

However I want to change the value in 'cases' and 'population2019' into integers instead of string.

I have used this code to change the string to integers

```
for i in dataset:        #Changes the value of multiple keys to integers instead of string 
    for key in i:
        i['cases'] = int(i['cases'])
        i['population2019'] = int(i['population2019'])

```

It does change the value of 'cases' to integer instead of string, but it doesn't work for 'population2019' since it is a big integer I suppose ('38041757').

The error is:

```
ValueError: invalid literal for int() with base 10: ''

```