in Python by
What is the output of the following?

string = "my name is x"
for i in string.split():
    print (i, end=", ")

a. m, y, , n, a, m, e, , i, s, , x,
b. error
c. my, name, is, x,
d. m, y, , n, a, m, e, , i, s, , x

1 Answer

0 votes
by

answer is a

m, y, , n, a, m, e, , i, s, , x,

...