Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

write a python program which accepts the user

firstName = input("Enter your first name : ") # ask for the user's first name
lastName = input("Enter your last name : ") # ask for the user's last name
print(f"Hello {lastName} {firstName}") # print the whole
# We here used a f-string which allows to put variables' value in a string
# by writing them between {}
Comment

PREVIOUS NEXT
Code Example
Python :: ffff in decimal python 
Python :: python hewwo world 
Python :: initiate dask 
Python :: count each value in lsitp ython 
Python :: Freqtrade - sell after x candels 
Python :: python generator for reading and writing file 
Python :: train_ttest_split() 
Python :: pyyhon SHA512 hash with key 
Python :: pvector python processing 
Python :: select features and label from df 
Python :: golng open file append 
Python :: list exaple in python 
Python :: loading model 
Python :: pandas sample frac 
Python :: candlesticks python 
Python :: df add column from dict 
Python :: pandas rename column values 
Python :: read file bytes python 
Python :: pseudo code generator online python 
Python :: how to remove a specific element from an array in python 
Python :: random forest classifier python 
Python :: add element to list python 
Python :: what is readline() in python 
Python :: store message sent by user in string discord py 
Python :: python group by 
Python :: list all pip packages 
Python :: a python string 
Python :: pandas split groupby 
Python :: shape function python 
Python :: Check if all values in list are greater than a certain number 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =