We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defprint_full_name(first:str,last:str)->None:"""Print a welcome string with users first and last name"""ifnotall(isinstance(x,str)forxin(first,last)):raiseTypeError("First and last name must be strings.")ifany(len(x)>10forxin(first,last)):raiseValueError("First and last name must be at most 10 characters long.")print(f"Hello {first}{last}!Youjustdelvedintopython.")if__name__=='__main__':first_name=input()last_name=input()print_full_name(first_name,last_name)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
What's Your Name?
You are viewing a single comment's thread. Return to all comments →