9. What will display after the following code executes? password - LOVE Python if password.isalpha(): print(luvalid, must c

9. What will display after the following code executes? password – “LOVE Python if password.isalpha(): print(‘luvalid, must contain one number.’) elif password.isdigit(): print(“Invalid, must have one non-numerie character.’) elif password.isupper(): print(“Invalid, cannot be all uppercase characters.’) else: print(“Your password is secure!) Invalid, must contain one number. b. Invalid, must have one non-numeric character. c. Invalid, cannot be all uppercase characters. d. Your password is secure! e. Syntax error 10. What will be assigned to the variables string after the following code executes? special=”25800 Carlos Bee Blvd S_string – special[-4:] a. 258 c. ‘Blvd c. none of the above b. Bee d. lyd 11. What will be displayed after the following code is executed? total=0 for count in range(4,2): total + count print(total) a. 1 b. 0 d. 0 12. What does the following program do? student 1 while student



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *