Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

short name in python

name = input("Please enter a name: ") #Short the name (V.S. Mathur)
short = name.split()
n = [x[0] for x in short[:-1]]
print(*n, short[-1])
 
PREVIOUS NEXT
Tagged: #short #python
ADD COMMENT
Topic
Name
5+2 =