Login
Remember
Register
Ask a Question
What is the output of the following?
0
votes
asked
Jun 13, 2019
in
Python
by
Derya
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. my, name, is, x,
c. error
d. m, y, , n, a, m, e, , i, s, , x
#python
#python-tutorial
#ball-python
#java
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 11, 2019
by
rajeshsharma
Answer is a
m, y, , n, a, m, e, , i, s, , x,
Variable i takes the value of one character at a time.
...