Python Tips: Converting a string list to an integer list, in 1 line

preview_player
Показать описание
A simple easy way to turn a list of strings into integers in python, all in one line.
Рекомендации по теме
Комментарии
Автор

Thank you sir...honestly, you deserve more views

elishaa
Автор

that was awesome! thanks! u sure can explain stuff. would love to see more from you. excellent!

thedeparted_one
Автор

thank you sir your video helped me a lot

dcbizgj
Автор

HOw can I use ur one line if i have a MAtrix ( 1 list containing multiple lists)

Mac_Pic
Автор

Thanks, please how do I take away ", " in a list that was converted to a string

truewisdom
Автор

How do u have an animated background. How do u do it

swass
Автор

hey, why does for i in list: i = int(i) doesnt work?

cotearanguizzz
Автор

how would you make the elements to floats?

maxyousofirahimi
Автор

how do you make a list that has words and numbers all as string to convert just the numbers into integers??

Tellyybooo
Автор

myarr = int[(i)for i in myarr] invalid systax I tried so many times your shortcut

mathenique
Автор

why would you give a very simple example that would be easy to split? what if the given str number is not spaced???? how to split that evenly????

sywang