If I have a list such as
c=['my', 'age', 'is', '5\n','The', 'temperature', 'today' 'is' ,'87\n']
How do I specifically Convert the numbers of the the list into integers leaving the rest of the string as it is and get rid of the \n ?
expected output:
`c=['my', 'age', 'is', 5,'The', 'temperature', 'today' 'is' ,87]`
I tried using the 'map()' and 'isdigit()' function but it didnt work.
Thank you.