What's Your Name? | Hacker Rank Solution in Python


Problem:

You are given the firstname and lastname of a person on two different lines. Your task is to read them and print the following:

Hello firstname lastname! You just delved into python.


Solution:

def print_full_name(a, b):
    print ("Hello " + a + " "+ b +"! You just delved into python.")

if __name__ == '__main__':
first_name = raw_input()
    last_name = raw_input()
    print_full_name(first_name, last_name)

Comments

Popular posts from this blog

Diagonal Difference | Hacker Rank Solution in C

Print Function | Hacker Rank Solution in Python

Counter game | Hacker Rank in C