Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started