Tech Study

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

To know more about Python visit these links below :

Write a Python program that accepts a word from the user and reverse it

 

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

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more