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.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. firstname = input("Input your First Name : ")
  2. lastname = input("Input your Last Name : ")
  3. print ("Hello " + lastname + " " + firstname)

Result

python language techstudy.org

     





Related Topics




Popular Posts