I am a newbie in python/python3 here, trying to figure out the following...

I have a list containing the following data:

```
datalist = ['1','2','abc','def','a234','b456']

print(type(new_datalist[0]))

print(type(new_datalist[1]))

<class 'str'>

<class 'str'>

```

**Is there a way to improvise the datalist to make the numbers in the list be converted into an int from its current str type ?**

***Desired outcome:***

```
new_datalist = []

print(new_datalist)

[1, 2 ,'abc','def','a234','b456']

print(type(new_datalist[0]))

print(type(new_datalist[1]))

<class 'int'>

<class 'int'>

```