Question: Code Example 4-1 def get_username(first, last) s first last return s.lower() def main(0: first_name input(Enter your first name: last_name input(Enter your last name:) username =

 Code Example 4-1 def get_username(first, last) s first "last return s.lower()

Code Example 4-1 def get_username(first, last) s first "last return s.lower() def main(0: 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: What is the scope of the variable named S? global b. local in main() but global in get_username() C. global in main() but local in get_username() d. local Code Example 4-10 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) f-name "-main-": main() Referto Code Example4-1: If the user enters "Lopez' for thefirst prompt in main() and 'Maria for the second prompt, what will display? Lopez.Maria b. lopez.maria C. maria.lopez d. Maria.Lopez

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!