function in python to make abbreviation of names code example
Example: 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])
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])