Write a Python program which accepts the user’s first and last name and print them in reverse order

Introduction

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

Write a Python program which accepts the user's first and last name and print them in reverse order
Write a Python program which accepts the user’s first and last name and print them in reverse order

Leave a Comment