Python 3.7: Split String Method

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you for this, it was just what I needed!

DrHappybone
Автор

Hello, could you please explain to me this:
new_str = "The cow jumped over the moon."
new_str.split('.')
why the out put is:
['The cow jumped over the moon', ' ' ]
thank you

MM-kzzd
Автор

a=str(input("enter string:"))
a=a.split( )
print(a)
I tried above code. Entered ' hai'.i want to convert 'hai' to [ 'h', 'a, 'i'] using split ().how to do it

gladyouseen
Автор

What if split() doesn't have an argument

gladyouseen