Question: Code Example 4-1 def get_username(first, last): s = first + . + last return s.lower() def main(): first_name = input(Enter your first name: ) last_name
Code Example 4-1 def get_username(first, last): s = first + "." + last return s.lower() def main(): first_name = input("Enter your first name: ") last_name = input("Enter your last name: ") username = get_username(first_name, last_name) print("Your username is: " + username) if __name__ == "__main__": main()
Refer to Code Example 4-1: If the user enters Lopez for the first prompt in main() and Maria for the second prompt, what will display?
| a. | Lopez.Maria | |
| b. | lopez.maria | |
| c. | Maria.Lopez | |
| d. | maria.lopez |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
