0

How to extract letters from a sentense?

Hello! How to extract letters from a sentense? Like this: Input > "hello world lorem ipusm Output >"hello","world","lorem","ipusm"

30th Oct 2021, 5:38 PM
pixel
pixel - avatar
4 Answers
+ 6
You can use the split function: "hello world".split()
30th Oct 2021, 5:39 PM
Lisa
Lisa - avatar
+ 4
Just use split() method Input = input() print(input.split())
30th Oct 2021, 5:41 PM
Pariket Thakur
Pariket Thakur - avatar
+ 1
Beauty Thank you😁👌
30th Oct 2021, 5:42 PM
pixel
pixel - avatar
0
Lisa Wow so easy! Tnks
30th Oct 2021, 5:41 PM
pixel
pixel - avatar