in Python by
Q:
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

▼ Show 1 Answer

0 votes
by

answer is a

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

Python
Learn More with Madanswer

Related questions

0 votes
asked Jun 13, 2019 in Python by Derya
...