Computer Science, asked by viveksingh2869, 6 months ago

how to write a pythan/instruction/statement/to display your name

Answers

Answered by Legend12R
2

Answer:

fullname(str1) /* str1 is a string */ Step 1: first we split the string into a list. Step 2: newspace is initialized by a space(“”) Step 3: then traverse the list till the second last word. Step 4: then adds the capital first character using the upper function. Step 5: then get the last item of the list.

Explanation:

Hope you find this helpful......

Answered by rebeccasamuel
0

Answer:

the statement is :

n=input("enter your name:")

print(n)

Explanation:

output

enter your name:ayushi

ayushi

Similar questions