What will be the output of the following Python code?
string = "my name is x"
for i in string.split():
print (i, end=", ")1.m, y, , n, a, m, e, , i, s, , x
2. m, y, , n, a, m, e, , i, s, , x
3.my, name, is, x,
4.error
Posted Date:-2021-12-30 07:20:24