<\/span><\/h2>\n\n\n\nYou are given the firstname and lastname of a person on two different lines. Your task is to read them and print the following:<\/p>\n\n\n\n
Hello firstname lastname! You just delved into python.<\/code><\/pre>\n\n\n\n<\/span>Input Format<\/strong><\/span><\/h2>\n\n\n\nThe first line contains the first name, and the second line contains the last name.<\/p>\n\n\n\n
<\/span>Constraints<\/strong><\/span><\/h2>\n\n\n\nThe length of the first and last name \u2264 10<\/strong>.<\/p>\n\n\n\n<\/span>Output Format<\/strong><\/span><\/h2>\n\n\n\nPrint the output as mentioned above.<\/p>\n\n\n\n
Sample Input 0<\/strong><\/p>\n\n\n\nRoss\nTaylor<\/pre>\n\n\n\nSample Output 0<\/strong><\/p>\n\n\n\nHello Ross Taylor! You just delved into python.<\/pre>\n\n\n\nExplanation <\/strong><\/p>\n\n\n\nThe input read by the program is stored as a string data type. A string is a collection of characters.<\/p>\n\n\n\n
<\/span>Solution – What’s Your Name in Python – Hacker Rank Solution <\/strong><\/span><\/h2>\n\n\n\n<\/span>Python 3 <\/strong><\/span><\/h3>\n\n\n\ndef print_full_name(a, b):\n print(\"Hello \" + a, b + \"! You just delved into python.\")\n\nif __name__ == '__main__':\n first_name = input()\n last_name = input()\n print_full_name(first_name, last_name)<\/pre>\n\n\n\n