In: Computer Science
Write code for a short method that does the following:
I am writing a Python code that accepts first name and last name as input and output the concatenated string with first name followed by last name:-
Below is the text form of above code:-
def compute():
first_name = input("Enter First name: ") #take first
input
last_name = input("Enter Last name: ") #take second
input
print(first_name + " " + last_name) #print first name,
then space followed by last name
return
compute() #call the function compute
Below is the screenshot of above code in executing
Please comment for any clarification.