Search
 
SCRIPT & CODE EXAMPLE
 

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])
Comment

PREVIOUS NEXT
Code Example
Python :: how to drag a box on your screen python 
Python :: appears in json dump 
Python :: write yaml file without deleting content 
Python :: python ai for stock trading 
Python :: qubesos 
Python :: python 5 minimal values from array 
Python :: create canvas for signature flutter 
Python :: python print list in dictionary 
Python :: first_list = [10,20,30,40] second list = first list second list[3]=400 
Python :: python on read text execute command 
Python :: python selenium canvas fingerprinting 
Python :: bashrc rc meaning 
Python :: expionenttiation python 
Python :: python faculty of 0 is 1 faculty of 1 is 1 
Python :: reportlab line thickness 
Python :: tkinter add new element into grid by click 
Python :: table and amorization charts using tkinter 
Python :: add up all the numbers in each row and output that number output the grand total of all rows 
Python :: new column in pandas with where logic 
Python :: python download sklearm model.joblib from google stroage 
Python :: groupby fillna ffill 
Python :: how to call the tkinter insert command from another class 
Python :: how to use Py-agender for projects 
Python :: python != 
Python :: equivalenci EN PYTHON DE INPUT EN C# 
Python :: Minimal requirements.txt django 
Python :: introduction to sets python3 
Python :: weighted averae multiple columns 
Python :: updating file multiple times in pandas 
Python :: colab not training always giving cuda out of memory error eventhough memory is available 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =