160k views
0 votes
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.


if not any(letter.isnumeric() for letter in password):

if not any(letter.isDigit() for letter in password):

if not any(letter.isdigit() for letter in password):

if not any(letter.isNumeric() for letter in password):

1 Answer

6 votes

Answer:

if not any(letter.isdigit() for letter in password):

Step-by-step explanation:

User Trishant Pahwa
by
7.5k points