adplus-dvertising
frame-decoration

Question

What is the output of the following?
string = "my name is x"
for i in ' '.join(string.split()):
    print (i, end=", ")

a.

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

b.

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

c.

my, name, is, x,

d.

error

Posted under Loops in Python Python

Answer: (a).m, y, , n, a, m, e, , i, s, , x,

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs