Convert String to List of Integers in Python (One Liner Code)

preview_player
Показать описание
Thanks if u r watching us .....
#Dev19 #Python #C #C++ #Vaibhav18vk
Рекомендации по теме
Комментарии
Автор

Thank you bro i am struggling how to covert the string and i saw your video and i am like what thats it not a problem at all.
So thank you bro

movietrail
Автор

A = [int(item) for item in S]
print(A)

kaustubh.sharma
Автор

Hi Dev can you please help me, I have a question.

If, original_str = "The quick brown rhino jumped over the extremely lazy fox"

How can we write a code, to get the result of the length of each word in a list format by assigning the result to the variable num_chars?

qasimzaheer