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
zhuklara [117]
2 years ago
11

class Login: def __init__(self): self.login_name = 'none' self.login_password = 'none' # TODO: Define class method - check_crede

ntials(self, user_login, user_passwd) if __name__ == "__main__": login = Login() timeout = 5 #variable used for login attempts login = input() password = input() # TODO: Create boolean variable that receives return value from # calling check_credentials(login, password) # TODO: Create a loop that will continue until login attempts run out or a successful login is returned # TODO: Create a loop that only allows 5 failed login attempts
Computers and Technology
1 answer:
Gnoma [55]2 years ago
4 0

Create boolean variable that receives return value from # calling check_credentials(login, password) # TODO a loop that will continue until login attempts run out or a successful login is returned # TODO #elegance Login elegance Login: #_init def _init_(self)  #initializing login_name as none self.login_name = 'none'.

<h3>What is a code in programming?</h3>

In laptop programming, laptop code refers back to the set of instructions, or a device of rules, written in a specific programming language (i.e., the supply code). It is likewise the time period used for the supply code after it's been processed via way of means of a compiler and made equipped to run at the laptop (i.e., the item code).

  1. CODE
  2. #elegance Login
  3. elegance Login:
  4. #_init_
  5. def _init_(self):
  6.  #initializing login_name as none
  7.  self.login_name = 'none'
  8.  #initializing login_password as none
  9.  self.login_password = 'none' #check_credentials()
  10. def check_credentials(self, user_login, user_passwd):
  11.  #initializing simlogin as 'Test'
  12.  simlogin = 'Test' #initializing simpass as 'Test'
  13.  simpass = 'test1234' #if consumer despatched an appropriate credentials
  14.  if user_login == simlogin and user_passwd == simpass:
  15.   #print "Successful login!"
  16.   print("Successful login!")
  17.   #returns False
  18.   go back False
  19.    #returns False
  20.   go back False
  21.   #timeout variable used for login attempts
  22. timeout = five
  23. #spark off for password
  24. password = input()
  25. #if now no longer legitimate login
  26.  else:
  27.   #decrements timeout
  28.  timeout = timeout - 1
  29.   #if timeout equals 0
  30.   if timeout == 0:
  31.    #prints "five failed login attempts. No extra login attempts."
  32.    print("five failed login attempts. No extra login attempts.")
  33.     #exits the loop
  34.    break
  35.  #spark off for consumer call
  36.  login = input()

Read more about the code:

brainly.com/question/4514135

#SPJ1

You might be interested in
What is Hadoop?
balu736 [363]

Answer:

software framework for supporting distributed data processing and storage.

Explanation:

3 0
3 years ago
Have you ever been told sensitive or confidential information that made you uncomfortable? How did you deal with the situation?
Korvikt [17]
I would tell said individual to stop what they’re trying to tell me because if it’s not stuff I should know about or want to hear about then I don’t wanna hear any of it
7 0
3 years ago
Which of the following is not a true statement? You can import a table or a query directly from an Access database into an Excel
Lilit [14]

Answer:

does anybody know this answer?

Explanation:

no nobody does

5 0
4 years ago
_____ is a protocol used by e-mail clients to download e-mails to your computer.
navik [9.2K]
Smtp : Simple Mail Transfer Protocol
3 0
3 years ago
The ideal body position for your legs after you've adjusted your seat is with your knee ___.
Kipish [7]

Answer:

is slightly crooked when pressing the pedals. This answer has been confirmed as correct and helpful

Explanation:

Hope it helps

7 0
3 years ago
Other questions:
  • Which of the following is a full selector?
    12·1 answer
  • Write a program that utilizes the concept of conditional execution, takes a string as input, and: prints the sentence "Yes - Spa
    8·1 answer
  • A collection of computers and other hardware devices that are connected together to share hardware, software, and data, as well
    15·1 answer
  • A stateless firewall inspects each incoming packet to determine whether it belongs to a currently active connection.
    9·1 answer
  • . How is using 0 / 1 or true / false in specifying digital an abstraction?
    11·1 answer
  • Pleasee help. How do you fix this problem in discord?
    10·1 answer
  • Each of these is a step in cEach of these is a step in conflict resolution: Evaluate solutions suggested. Define the problem. De
    7·1 answer
  • How is the OR (||) logical operator used?<br> PLS HURRY
    11·1 answer
  • write a program in C# that reads a set of integers and then finds and prints the sum of the even and odd integers?​
    12·1 answer
  • Which tab automatically becomes available after inserting a text box? Drawing Tools Insert Text Box Tools Shape Tools
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!