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
postnew [5]
4 years ago
13

Test if a password entered is correct. The secret phrase is Ada Lovelace. Sample Run 1 Enter the Password: Ada Lovelace Sample O

utput 1 Correct! Sample Run 2 Enter the Password: Blaise Pascal Sample Output 2 Not Correct
Computers and Technology
1 answer:
Rainbow [258]4 years ago
6 0

Answer:

a1="Ada Lovelace"

a2= input("Enter Password: ")

def checkpassword(a2):

   if a2 == a1:

       print("Correct Password")

   else:

       print("Wrong Password")

   return 0

Explanation:

The string as password is given. Now we ask the user to input the password, and this is compared to the original password. If the passwords match, print password matched, or else print wrong password.

You might be interested in
In online advertising, the term "impression" refers to: the Web site displayed when a user clicks on an advertisement. the measu
Sunny_sXe [5.5K]

Answer:

Each time an ad is shown

Explanation:

The term view or add view can both be used to refer to impression in online advertising. It is basically a record of the number of times a web visitor sees an advertisment that is displayed on the webpage. To determine this number for a particular advertisement, the number of times the page containing the add is visited and loaded is counted as the advertisement is always going to be shown at each loading of the page.

4 0
3 years ago
What tool do you use to secure remote access by users who utilize the internet??
madam [21]
The tool that you use to secure remote access by users is VPN
3 0
3 years ago
Please help!!!!<br> Data means only facts. <br> A. TRUE B. FALSE
vredina [299]
B false data does not only have to be facts
6 0
3 years ago
In the following project, you will edit a worksheet that will be used to summarize the operations costs for the Public Works Dep
yan [13]

Answer:cgtd

Explanation:

3 0
3 years ago
The template code provided is intended to take two inputs, x and y, from the user and print "pass" if one or more of the followi
just olya [345]

import java.util.Scanner;

public class U3_L6_Activity_Two{

   public static void main(String[] args){

       Scanner scan = new Scanner(System.in);

       int x = scan.nextInt();

       int y = scan.nextInt();

       if(x>=4|| ((y < 5) && ((x+y) < 7))){

           System.out.println("pass");

       }

   }

}

I'm pretty sure this is what you're looking for. Best of luck.

7 0
3 years ago
Other questions:
  • What specific information would you need to obtain from an ISP or cloud service provider whose hosting services you wanted to us
    9·1 answer
  • If a user on a laptop complains that they are unable to sign into windows even though they are certain they are entering the cor
    6·1 answer
  • Because public key encryption requires the use of two different keys, it is also known as _____ encryption
    13·1 answer
  • Which of the following is an example of a word processing program?
    11·2 answers
  • Design a Ship class with the following members:
    13·1 answer
  • A green screen should be lit with which two lights?
    6·2 answers
  • Alison is having a hard time at work because her Inbox is flooded with emails every day. Some of these emails are unsolicited. S
    15·2 answers
  • A 90-minute film is based on a fictional couple. They are very happy throughout the entire film. The film shows how they met, wh
    5·2 answers
  • What should you try first if your antivirus software does not detect and remove a virus?
    6·1 answer
  • The specialized programs used by the operating systems to help ensure that memory is used properly and there are no memory confl
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!