Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

a function that accepts a name as input, returns a data frame with one row per letter.

–1 vote
asked Nov 4, 2019 by anonymous

1 Answer

0 votes
answered Nov 7, 2019 by dheeraj (1,090 points)
a=input('enter the name:')
b=list(a)
for i in b:

    print(i)
commented Nov 8, 2019 by gameforcer (2,990 points)
In python strings can be iterated similarly to lists so variable b is unnecessary:

a=input('enter the name:')
for i in a:
    print(i)
commented Nov 10, 2019 by Dheeraj Dheeraj
Ya it will work
But, I did that by using the function(list)
But it's ok
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...