18
QuizMultiple Choice

Test: Laws and Security

Question 18 • Introduction to Computer Science B – 4-232

Which line of code will check to see if the password contains a numeric character?The consequences will be executed when there is no numeric character.

Answer
A
if not any(letter.isDigit() for letter in password):
B
if not any(letter.isNumeric() for letter in password):
C
if not any(letter.isnumeric() for letter in password):
D
if not any(letter.isdigit() for letter in password):
Previous
Next
Which line of code will check to see if the…