import random def make_message(first, last): if first in…

Question Answered step-by-step import random def make_message(first, last): if first in… import randomdef make_message(first, last): if first in [“GIVEN”,””] or last in [“SURNAME”,””]: raise ValueError(“Unchanged or empty first or last name”) greeting = f”Hi, {first} {last}, it’s nice to meet you!” greeting = greeting + f” I’m Robot #{random.randint(0,1000000)}” return greetingSave the result of make_message(first_name, last_name) to the variable greeting.Print greeting. Use make_message(first,last) to write a greeting to one of the professors. Assign this message to the variable prof_greeting. Computer Science Engineering & Technology Python Programming DS 710. Share QuestionEmailCopy link Comments (0)