Question

3.2.6 0ל Y ו PasswordCheck.py entered 2 passWOrd 3 tries = 3 abc123 abc123 4 5#You may modify the 1ines of code above, but
tfit.py sunny windy True False #You may modify the lines of code #When you Submit your code, assign different values to the v
0 0
Add a comment Improve this question Transcribed image text
Answer #1

"""
  PasswordCheck.py
"""

entered = "abc123"
password = "abc123"
tries = 3

if entered == password:
  if tries <= 3:
    print("Login successful.")
  elif tries > 3:
    print("Tries exceeded.")
else:
  print("Incorrect password.")
  if tries > 3:
    print("Tries exceeded.")

# program ends here

epl.it- SalmonfcolhardyEmulat x https://repl.it/@imtusharsharma/SalmonFoolhardyEmulation imtushars harma/Salmon Foolhardytmul


sunny = True
windy = False

if sunny:
  if not windy:
    print("Wear a hat!")

if not sunny:
  if windy:
    print("Enjoy the breeze!")

epl.it- SalmonfcolhardyEmulat x https://repl.it/@imtusharsharma/Sal mon FoolhardvEmulation imtushars harma/Salmon Foolhardytm

Add a comment
Know the answer?
Add Answer to:
3.2.6 0ל Y ו PasswordCheck.py entered 2 passWOrd 3 tries = 3 abc123" abc123" 4 5#You...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a new program in Mu and save it as ps3.2.2.py and take the code below...

    Create a new program in Mu and save it as ps3.2.2.py and take the code below and fix it as indicated in the comments: egg = True milk = True butter = True flour = True # You may modify the lines of code above, but don't move them! # When you Submit your code, we'll change these lines to # assign different values to the variables. # Imagine you're deciding what you want to cook. The boolean # variables...

  • Create a new program in Mu and save it as ps3.2.1.py and take the code below...

    Create a new program in Mu and save it as ps3.2.1.py and take the code below and fix it as indicated in the comments: hour = 3 minute = 45 # You may modify the lines of code above, but don't move them! # When you Submit your code, we'll change these lines to # assign different values to the variables. # Around Georgia Tech, there are plenty of places to get a # late night bite to eat. However,...

  • Accumulation Pattern Problem 2 Consider the code below. 1 2 3 4 5 6 7 8...

    Accumulation Pattern Problem 2 Consider the code below. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 labs = ['lab1', 'lab2', 'lab3', 'lab4', 'lab5', 'lab6', 'lab7', 'lab8', 'lab9'] graded = '' for lab in labs:     lab_num = int(lab[3])     if lab_num < 4:         graded = graded + lab + ' is simple\n'     elif lab_num < 7:         graded = graded + lab + ' is ok\n'     else:         graded = graded + lab + ' is complex\n'         ...

  • What is the result of the following: print(input("Enter a number")* 2) if you entered 9. oooo...

    What is the result of the following: print(input("Enter a number")* 2) if you entered 9. oooo 13 Error What is the result of t = (1, 3.5): t.append(7) O (1,3,5,7) O (1,3,5) O (7) Error To check if there is a WIN in a tic-tac-toe game, the program has to check * O 6 lines of 3 boxes O 8 lines of 3 boxes O 9 boxes O The Center What is the result of print( int("3" + "5") +...

  • This is for C++ Write a program that reads in a sequence of characters entered by...

    This is for C++ Write a program that reads in a sequence of characters entered by the user and terminated by a period ('.'). Your program should allow the user to enter multiple lines of input by pressing the enter key at the end of each line. The program should print out a frequency table, sorted in decreasing order by number of occurences, listing each letter that ocurred along with the number of times it occured. All non-alphabetic characters must...

  • python math operator help Coding Problem 2.4.7 (Advanced) (External resource) (1.0 points possible) CoughSyrup.py Submit tRun...

    python math operator help Coding Problem 2.4.7 (Advanced) (External resource) (1.0 points possible) CoughSyrup.py Submit tRun G Grades Reset I dosage 100 Console output will be displayed here 2 time since last dose 7 3 is nighttimeFalse 4 took_something_cross_reactiveFalse 5 6#You may modify the lines of code above, but don't move them! 7 #When you submit your code, we'll change these lines to 8#assign different values to the variables. 10 #Let's try to use our mathematical operators and logical 111#operators...

  • User Profiles Write a program that reads in a series of customer information -- including name,...

    User Profiles Write a program that reads in a series of customer information -- including name, gender, phone, email and password -- from a file and stores the information in an ArrayList of User objects. Once the information has been stored, the program should welcome a user and prompt him or her for an email and password The program should then use a linearSearch method to determine whether the user whose name and password entered match those of any of...

  • use python IDEL Please highlight the answer 1 ווCIוסטIT Errors and Exceptions. There are two main...

    use python IDEL Please highlight the answer 1 ווCIוסטIT Errors and Exceptions. There are two main types of errors: syntax errors and runtime errors. Syntax errors are detected by the Python interpreter before the program execution during the parsing stage (parsing is a process, during which the Python interpreter analyzes the grammatical structure of the program). Runtime errors are errors in a program that are not detected by the Python interpreter during its parsing stage. They are further divided into...

  • Please explain, thank you! Results for this submission Entered Answer Preview Result [(-2/5)*(x^2)+(-4/25)*x+(-152/375)]*[e^(2x)] incorrect The answer...

    Please explain, thank you! Results for this submission Entered Answer Preview Result [(-2/5)*(x^2)+(-4/25)*x+(-152/375)]*[e^(2x)] incorrect The answer above is NOT correct. (1 point) Use the method of undetermined coefficients to find one solution of y" +3 y' – 5 y=(-6x2 – 80 – 8) e21. y= ((-2/5)x^(2)+(-4/25)x+(-152/375))e^(2x) help (formulas) Note: The method finds a specific solution, not the general one. Do not include the complementary solution in your answer. Preview My Answers Submit Answers Your score was recorded. You have attempted...

  • Entered Answer Preview Result sech (**) 4x3 tann?(x) [([sech(x^(1/4))]^2)/(4* [x^(3/4)]* (ſtanh(x^(1/4))]^2)] incorrect The answer above is...

    Entered Answer Preview Result sech (**) 4x3 tann?(x) [([sech(x^(1/4))]^2)/(4* [x^(3/4)]* (ſtanh(x^(1/4))]^2)] incorrect The answer above is NOT correct. (1 point) If f(x) = tanh- va then f'(x) = -(sech^2(x^(1/4))/(4x^(3/4)tanh^2(x^(1/4)))) Preview My Answers Submit Answers Your score was recorded. You have attempted this problem 5 times. You received a score of 0% for this attempt. Your overall recorded score is 0%. You have unlimited attempts remaining. HW-2: Problem 3 Previous Problem Problem List Next Problem (1 point) If f(x) = x...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT