Write a Python program to access a function inside a function

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

Add a Comment

Your email address will not be published. Required fields are marked *