Python Quiz | Day 3 | What is the output of following code ?

preview_player
Показать описание
#python # #shorts #coding

We are supporting freely to everyone. Join us for live support.

Рекомендации по теме
Комментарии
Автор

the output would be B, because the is no match for the specified delimiter.

bammalik
Автор

B
Because there's no separator such as (' ') in variable _li_

yigitcan
Автор

split wherever ' ' is present. But there is no empty space in 'python'. So output is ['python']

saibhaskar
Автор

result is B, split doesn't work as you expect it to work =), to make it A no need split(), just make a sep_to_char = list(li) and print(sep_to_char)

БогданСиверчук