Advertisements
Advertisements
प्रश्न
What is the output of the given Python code?
st='Waterskiing is thrilling!'
print(st.split("i"))विकल्प
['Watersk', 'ng ', 's thr', 'll', ‘ng!']['Watersk', '', 'ng ', 's thr', 'll', 'ng!']['Watersk', 'i', 'ng ', 's thr', 'll', ‘ng!']Error
MCQ
Advertisements
उत्तर
['Watersk', '', 'ng ', 's thr', 'll', 'ng!']
Explanation:
The split("i") function divides the string wherever 'i' occurs.
Two 'i's in “skiing” create an empty string '' between them, giving.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
