def is_strong–password(passwd: str) -> bool: """Return True if and only if passwd is considered to be a strong password. A string is considered to be a strong password when it satisfies each of the following conditions: it has a length greater than or equal to 6, it contains at least one lowercase letter, it contains at least one uppercase letter, and it contains at least one digit. Hint: Try using boolean variables or counting variables in your solution. They can be used when determining whether or not each condition has been met. >> is_strong_password('I<3csc108') True >> is_strong_password('compsci!!') False >> is_strong_password('Csc108') True

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
def is_strong-password(passwd: str) -> bool:
"""Return True if and only if passwd is considered to be a strong password.
A string is considered to be a strong password when it satisfies each of
the following conditions:
it has a length greater than or equal to 6,
it contains at least one lowercase letter,
it contains at least one uppercase letter, and
it contains at least one digit.
-
-
Hint: Try using boolean variables or counting variables in your solution.
They can be used when determining whether or not each condition has
been met.
>> is_strong_password('I<3csc108')
True
>> is_strong_password('compsci!!')
False
>> is_strong_password('Csc108')
True
II II II
Transcribed Image Text:def is_strong-password(passwd: str) -> bool: """Return True if and only if passwd is considered to be a strong password. A string is considered to be a strong password when it satisfies each of the following conditions: it has a length greater than or equal to 6, it contains at least one lowercase letter, it contains at least one uppercase letter, and it contains at least one digit. - - Hint: Try using boolean variables or counting variables in your solution. They can be used when determining whether or not each condition has been met. >> is_strong_password('I<3csc108') True >> is_strong_password('compsci!!') False >> is_strong_password('Csc108') True II II II
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,