1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Studentka2010 [4]
3 years ago
9

You will write a function that determines if a password is "strong" or "weak". Your function willhave one parameter, the passwor

d given as a string, and return the string "strong" or "weak"depending on the password. A password is strong only if it meets ALL of these criteria:1.It is 8 or more characters long2.It contains a digit (0-9)3.It contains an uppercase letter (A-Z)4.It contains a lowercase letter (a-z)5.It contains one of these five special characters "@*&$!"
Engineering
1 answer:
madreJ [45]3 years ago
7 0

Answer:

def checkStrength(password):

   lower = False

   upper = False

   digit = False

   length = False

   characters = False

   chars = ["@", "*", "&", "$", "!"]

   if len(password) < 8:

       length = False

   else:

       length = True

   for c in password:

       if c.isdigit():

           digit = True

       if c.islower():

           lower = True

       if c.isupper():

           upper = True

       if c in chars:

           characters = True

   if lower and upper and digit and length and characters:

       return "Strong"

   else:

       return "Weak"

print(checkStrength("[email protected]"))

end

You might be interested in
PLS HELP ME
Oksana_A [137]

Answer:

The Euler buckling load of a 160-cm-long column will be 1.33 times the Euler buckling load of an equivalent 120-cm-long column.

Explanation:

160 - 120 = 40

120 = 100

40 = X

40 x 100 / 120 = X

4000 / 120 = X

33.333 = X

120 = 100

160 = X

160 x 100 /120 = X

16000 / 120 = X

133.333 = X

4 0
3 years ago
Marks
Lina20 [59]

Answer:

i think C

Explanation:

if not really sorry

3 0
3 years ago
Explain how feedback control is used to<br> adjust robotic movements.
LuckyWell [14K]

Answer:

Feedback control of arm movements using Neuro-Muscular Electrical Stimulation (NMES) combined with a lockable, passive exoskeleton for gravity compensation

6 0
2 years ago
Q1: You have to select an idea developing an application like web/mobile or industrial, it should be based on innovative idea, n
elena55 [62]

Answer:

Creating an app is both an expression of our self and a reflection of what we see is missing in the world. We find ourselves digging deep into who we are, what we would enjoy working on, and what needs still need to be fulfilled. Generating an app idea for the first time can be extremely daunting. Especially with an endless amount of possibilities such as building a church app.

The uncertainty has always spawned a certain fear inside creators. The fear of creating something no one will enjoy. Spending hundreds of dollars and hours building something which might not bring back any real tangible results. The fear of losing our investment to a poor concept is daunting but not random. But simple app ideas are actually pretty easy to come by.

Great app idea generation is not a gift given to a selected few, instead, it is a process by which any of us are able to carefully explore step by step methods to find our own solution to any problem. Whether you are a seasoned creator or a novice, we have provided a few recommendations to challenge and aid you as you create your next masterpiece.

if I am right then make me brainliest

6 0
3 years ago
Decide whether the function is an exponential growth or exponential decay function, and find the constant percentage rate of gro
sasho [114]

Answer:

Just answered this to confirm my profile.

Explanation:

I dont have a clue, this is just to confirm my profile.

8 0
3 years ago
Other questions:
  • Where do I buy a 1997 MK4 Toyota Supra twin turbo manual for cheap
    11·1 answer
  • Pascal's law tells us that, pressure is transmitted undiminished throughout an open container. a)- True b) False
    9·1 answer
  • What is the formula for measuring the speed of an object
    14·1 answer
  • In a production turning operation, the foreman has decreed that a single pass must be completed on the cylindrical workpiece in
    7·1 answer
  • To 3 significant digits, what is the temperature of water in degrees C, if its pressure is 350 kPa and the quality is 0.01
    7·1 answer
  • In a reversible process both the system and surrondings can be returned to their initial states. a)-True b)-False
    14·1 answer
  • Part of the following pseudocode is incompatible with the Java, Python, C, and C++ language Identify the problem. How would you
    12·1 answer
  • A steel bar 100 mm long and having a square cross section 20 mm x 20 mm is pulled in
    6·1 answer
  • You are given that kc = 10-1 kg eq-1 min-1, ku = 10-3 kg2 eq-2 min-1 and [A]0 = 10 eq kg-1, where kc is the rate constant for a
    15·1 answer
  • 5. Create a function named second_a that uses a list comprehension. The function will take a single integer parameter n. Find ev
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!