Advertisements
Advertisements
Question
Select the correct output of the code:
s = "Python is fun"
l = s.split()
s_new = "_".join([1[0].upper(), 1[1], 1[2].capitalize()])
print(s_new)Options
PYTHON-IS-FunPYTHON-is-FunPython-is-funPYTHON-IS -Fun
MCQ
Advertisements
Solution
PYTHON-is-Funshaalaa.com
Is there an error in this question or solution?
