Write a Python program which accepts the user’s first and last name and print them in reverse order.
I have used python 3.7 compiler for debugging purpose.
firstname = input("Input your First Name : ") lastname = input("Input your Last Name : ") print ("Hello " + lastname + " " + firstname)
Result:
Input your First Name : Rohit
Input your Last Name : Mhatre
Hello Mhatre Rohit
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used python 3.7 compiler for debugging purpose.
Result:
Input your First Name : Rohit
Input your Last Name : Mhatre
Hello Mhatre Rohit
need an explanation for this answer? contact us directly to get an explanation for this answer