**IN PYTHON**
Write a program that uses a loop and a half to prompt a user for a password. You should prompt the user for the password. If they get it correct, break out of the loop. If they don’t get it correct, you should give them an error message and ask again.

Sample Run:
Enter password: 123123
Sorry, that did not match. Please try again.
Enter password: password
Sorry, that did not match. Please try again.
Enter password: CODEHS
Sorry, that did not match. Please try again.
Enter password: abc123
You got it!
Note: You need to set SECRET to abc123 to run the tests

Answers

Answer 1

Answer:

SECRET = "abc123"

while True:

p = input("Enter password: ")

if p != SECRET:

 print("Sorry, that did not match, Please try again.")

else:

 print("You got it!")

 break

Explanation:

Answer 2

SECRET = "abc123" will be used in the language of python that was created.

What is Python?

Python is a PC programming language frequently used to fabricate sites and programming, robotize errands, and direct information examination. Python is a universally useful language. This language tends to be utilized to make a wide range of projects and isn't particular for a particular issue.

To maintain a user attempting to enter the password, we have used a while loop that never ends. We employ an if-else structure in the loop to determine the password. If it is "abc123," the passcode is discovered, and the loop is broken.

SECRET = "abc123"

There is a function and if that is true, then

p = input("Enter password: ")

The if function will be implemented.

if p != SECRET:

print("Sorry, that did not match, Please try again.")

The else function will be implemented:

else:

print("You got it!")

break

Learn more about Python, here:

https://brainly.com/question/30427047

#SPJ3


Related Questions

Based on this, which component would Mr. O be most concerned with when shopping for a new computer? RAM Internal memory Keyboard

Answers

Answer:

The answer is RAM

Explanation:

The random access memory (RAM) in your computer is one of the most important components in determining the overall performance of your system. It saves the information that is currently being used by your computer so that it can be accessed quickly in the future. The greater the number of programs running on your system, the more memory you'll require.

name the steps to turn on a computer properly​

Answers

Answer:

Check that the computer is connected to power, and is powered on.

Make sure that your keyboard and mouse are plugged in.

Check that the monitor (screen) is plugged into the computer using its display cable.

Ensure that the monitor is connected to power and is turned on.

Explanation:

Use Chrome Remote Desktop to create a remote connection to Computer 2. Can you use the utility to view the desktop of Computer 2

Answers

Answer:

Yes, this can be done. You'll need a static IP on your desktop, there is a registry entry that controls the port remote desktop listens on. Change the desktop to port 3390 or some other unused port number.

Creation of network is known as…?

Answers

Answer:

GRID

Explanation:

HOPE IT HELP ✌️✌️✌️✌️

Answer:

It’s knows as grid

Explanation:

creation of network is known as grid

(Hope this helps can I pls have brainlist (crown)☺️)

Roz’s teacher says that the assignment for that day is to listen to a speech by President Kennedy. Which of the following files will Robin open to complete the assignment? A. PDF B. docx C. mp3 D. systems software

Answers

Answer:

Pretty sure the answer is C. mp3

Explanation:

They have to listen to the speech, not read it or anything, and mp3's are audio files. Hope this helps :D

Answer:

c

Explanation:

source: trust me bro

Exactly how many times must the merge function call each of read and write to merge two arrays of size n/2 into an array of size n, assuming that n/2 is divisible by b

Answers

Answer:

Exactly how many times must the merge function call each of read and write to merge two arrays of size n/2 into an array of size n, assuming

i don t know

people, hardware, software, data, procedures, and communication network working together to collect, transform and disseminate information called

Answers

Answer:

Information systems are combinations of hardware, software, and telecommunications networks that people build and use to collect, create, and distribute useful data, typically in organizational settings.

Explanation:

Write a program that reads integers userNum and divNum as input, and output the quotient (userNum divided by divNum). Use a try block to perform the statements. Use a catch block to catch any ArithmeticException and output an exception message with the getMessage() method. Use another catch block to catch any InputMismatchException and output an exception message with the toString() method. Note: ArithmeticException is thrown when a division by zero happens. InputMismatchException is thrown when a user enters a value of different data type than what is defined in the program. Do not include code to throw any exception in the program.

Answers

The program is an illustration of exceptions

Exceptions are used to manage programs from crashing, when they encounter errors.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main {

   public static void main(String[] args) {

       //This creates a Scanner object

       Scanner input = new Scanner(System.in);

       //This gets input for userNum

       int userNum = input.nextInt();

       //This gets input for divNum

       int divNum = input.nextInt();

       //This opens the InputMismatchException try catch

       try {

           //This opens the ArithmeticException try catch

           try{

               //This prints the division of userNum by divNum

               System.out.print(userNum/divNum);

           }

           //If divNum is 0, this catches the exception

           catch (ArithmeticException e){

               System.out.println(e.getMessage());

           }  

        }  

        //If the inputs are not integers, this catches the exception

        catch (InputMismatchException ex) {

           System.out.println(ex.getMessage());

        }

  }

}

Read more about exceptions at:

https://brainly.com/question/6864640

state the differences between selecting a text and highlighting a text as used in computing​

Answers

Explanation:

The difference between highlighting the text and selecting the text is highlighting is when you change the highlight/back color of the text and selecting is when you temporarily highlight it to change a certain part

During the maintenance phase of the software development life cycle, the maintenance team takes steps to _____.

Answers

During the maintenance phase of the software development life cycle (SDLC), the maintenance team takes steps to: Assess how the software program is working, so as to keep the system up and running.

Software development life cycle (SDLC) can be defined as a strategic process (methodology) that defines the key steps, phases, or stages for the development (creation) and implementation of high quality software programs (applications).

Generally, there are six (6) main phases involved in the development (creation) of a software program and these include;

PlanningAnalysisDesignDevelopment (coding)DeploymentMaintenance

During the maintenance phase of the software development life cycle (SDLC), the software developers usually take feedback from end users, in order to know and understand what is good or bad about their software programs (applications).

Hence, the maintenance team are saddled with the responsibility of using the feedbacks to assess how a software program is working, so as to keep the system up and running.

Read more: https://brainly.com/question/20813142

Need help: what is 10^2

Answers

Answer:

100

Explanation:

Answer:

100

Explanation:

hope it helps

Problem Statement − Suppose the problem statement at hand is to contain the attrition that happens in companies worldwide. High quality employees leave the organization, mainly after the appraisal cycle. As a result, an average company loses its valuable human resources and suffers from an overhead of transferring the knowledge to a new employee. This takes time and additional human resource in the form of a trainer, which adds to the company’s costs. Devise a plan to contain attrition in the company.

Answers

Answer:Analysis is derived from the Greek word ‘analusis’, which translates into ‘breaking up’ in English. Analysis is older than the times of great philosophers like Aristotle and Plato. As discussed in the previous section, analysis is the process of breaking down a big single entity into multiple fragments. It is a deduction where a bigger concept is broken down to smaller ones. This breaking down into smaller fragments is necessary for improved understanding.

So, how does analysis help in design thinking? During analysis, design thinkers are required to break down the problem statement into smaller parts and study each one of them separately. The different smaller components of the problem statement are to be solved one-by-one, if possible. Then, solutions are thought for each of the small problems. Brainstorming is done over each of the solutions.

Later, a feasibility check is done to include the feasible and viable solutions. The solutions that don’t stand firm on the grounds of feasibility and viability are excluded from the set of solutions to be considered.

Design thinkers are, then, encouraged to connect with the diverse ideas and examine the way each idea was composed. This process of breaking down the bigger problem statement at hand into multiple smaller problem statements and examining each as a separate entity is called analysis.

Reductionism

The underlying assumption in analysis is reductionism. Reductionism states that the reality around us can be reduced down to invisible parts. The embodiment of this principle is found in basic axioms of analytic geometry, which says “the whole is equal to the sum of its parts”. However, understanding of a system cannot be developed by analysis alone. Hence, synthesis is required following analysis.

Synthesis

Synthesis refers to the process of combining the fragmented parts into an aggregated whole. It is an activity that is done at the end of the scientific or creative inquiry. This process leads to creation of a coherent bigger entity, which is something new and fresh. How does synthesis come into picture in design thinking?

Once the design thinkers have excluded the non-feasible and non-viable solutions and have zeroed-in on the set of feasible and viable solutions, it is time for the thinkers to put together their solutions.

Out of 10 available solutions, around 2-3 solutions may need to be excluded since they may not fit into the larger picture, i.e. the actual solution. This is where synthesis helps.

The design thinkers start from a big entity called the problem statement and then end up with another bigger entity, i.e. the solution. The solution is completely different from the problem statement. During synthesis, it is ensured that the different ideas are in sync with each other and do not lead to conflicts.

Analysis + Synthesis = Design Thinking

Analysis and synthesis, thus, form the two fundamental tasks to be done in design thinking. Design thinking process starts with reductionism, where the problem statement is broken down into smaller fragments. Each fragment is brainstormed over by the team of thinkers, and the different smaller solutions are then put together to form a coherent final solution. Let us take a look at an example.

Analysis Synthesis

Case Study

Problem Statement − Suppose the problem statement at hand is to contain the attrition that happens in companies worldwide. High quality employees leave the organization, mainly after the appraisal cycle. As a result, an average company loses its valuable human resources and suffers from overhead of transferring the knowledge to a new employee. This takes time and additional human resource in the form of a trainer, which adds to the company’s costs. Devise a plan to contain attrition in the company.

Analysis − Now, let’s break down the problem statement into various constituent parts. Following are the subparts of the same problem statement, broken down to elementary levels.

The employees are not motivated anymore to work in the company.

Appraisal cycle has something to do with attrition.

Knowledge transfer is necessary for new employees.

Knowledge transfer adds to the cost of the company.

Synthesis − Now, let's start solving each problem individually. In this step, we will do synthesis. Let's look at one problem at a time and try to find a solution only for that problem statement, without thinking of other problem statements.

Explanation:

The agreement must be signed by the employee before giving appraisal letter and in that there is some time limit that is essential to be in the organization.

Why employee leaves the company after getting appraisal?

The employees leave the old company after getting the promotion or appraisal letter from the authority because they want to get the better salary by showing the apparent post in the old organization. They get better salary from the last job.

Thus, The agreement must be signed by the employee before giving appraisal letter

For more details about employee leaves the company after getting appraisal, click here:

https://brainly.com/question/14057221

#SPJ2

What is the output of the following code?
print (12 // 6)

Answers

Answer:

2

See here we have //// means floor division in python.It gives us only the integer part not floating or decimal.

So

12//6=2

How do you indicate a new paragraph?
<img>content</img>
<em>content</em>
<a>content</a>
<p>content</p>


Answers

Answer:

i think it says it here https://www.peachpit.com/articles/article.aspx?p=674695&seqNum=6

Explanation:

content



p = paragraph
< > is the beginning of your HTML command
> marks the end of your HTML command

Has digital transmission changed the nature of communication?

Answers

Answer:

yes , digital transmission really has changed the communication with the new apps and devices and reduced paper work.

Each slide in a presentation has a layout that includes placeholders for certain types of content?
True
False

Answers

Answer:

True

Explaination:

It has layouts that includes placeholders for images, text and lot more

Each slide in a presentation contains a layout that includes placeholders for certain types of content: True.

What is a slide?

A slide simply refers to a single page of a presentation that comprises text-based information or images, which can be used to teach, instruct and educate the audience on a subject matter, topic, event or idea.

In Computer technology, each slide in a presentation contains a layout that includes placeholders for certain types of content such as:

ImagesTextsVideo

Read more on slides here: https://brainly.com/question/26187618

#SPJ2

What practice makes it virtually impossible to figure out the geographic location of a company?
O virtual location
O multiple location
O cloud location
O colocation

Answers

Virtual Location because then they think it’s landlocked even if it’s not or it’s islands even if it’s just mainland

Select the three responsibilities of producers.
providing graphics
being on time
being on budget
being on target
providing collateral content
being error free

Answers

Being on time
Being on budget
Being on target

How do you code in computers and technology

Answers

Take online courses.

Watch video tutorials.

Read books and ebooks.

Complete coding projects.

Find a mentor and a community.

Consider enrolling in a coding boot camp.

True or False: A sequential search of a list assumes that the list elements are sorted in ascending order.

Answers

True in the answer
Hope this helps

How do i find the minterms

Answers

Answer:

I think.....

Explanation:

bylooking

All of the following is true about an artificial neural network, or ANN except: a.It identifies patterns that have not been programmed b.It is an optimization tool c.It is a computer system that can recognize and act on patterns or trends it detects in large sets of data d.It functions similarly to the neural circuitry of the brain

Answers

Answer:

b. It is an optimization tool

Explanation:

All of the following are true about an artificial neural network, or ANN except:

B. It is an optimization tool

According to the given text, we are asked to show the odd one out about the artificial neural network or ANN and its functions in the computer network

As a result of this, we can see that the artificial neural network or ANN helps to identify patterns that have not been programmed, functions similarly to the neural circuitry of the brain, recognizes and acts on patterns or trends it detects in large sets of data, but it is not an optimization tool.

Therefore, the correct answer is option B

Read more here:

https://brainly.com/question/19714088

help me pls...
Which of the following can a cell contain?

A: a number

B: a word

C: a function

D: all of these​

Answers

Answer:

None

Explanation:

A cell is a living thing it contains a plasma membrane, an outer covering that separates the cell’s interior from its surrounding environment; cytoplasm, consisting of a jelly-like region within the cell in which other cellular components are found; DNA, the genetic material of the cell; and  ribosomes, particles that synthesize proteins

Answer:

D, all of the above :)

Consider rolling a 6-sided die. The outcome of interest is the number of dots that appears on the topside when the die stops rolling. The possible outcomes are 1, 2, 3, 4, 5 & 6. Suppose we play the following game. Roll the 6-sided die, you are rewarded a dollar amount equal to the number of dots on the topside of the die when it comes to rest. Suppose the die is fair (each side is equally likely). Define the random variable X to be the amount you are rewarded after one roll.

Answers

Using the discrete probability relation, the random variable, X for the amount to be rewarded per roll is :

X : ___ 1___ 2 ___ 3 ___ 4 ___ 5 ___6P(X)__1/6__ 1/6 __ 1/6__ 1/6___ 1/6 _ 1/6

The dollar amount corresponds to the number on the die :

Possible amount awarded (X) :

X = {1, 2, 3, 4, 5, 6}

Since we have a fair die :

Probability of obtaining any certain value on the die is the same ; Hence, the probability of obtaining a certain value would be :

P = 1/6

Hence, the random variable, X can be defined thus:

X : ___ 1___ 2 ___ 3 ___ 4 ___ 5 ___6

P(X)__1/6__ 1/6 __ 1/6__ 1/6___ 1/6 _ 1/6

Learn more : https://brainly.com/question/25341513

what is the basic computer application?​

Answers

Answer:

a computer code

Explanation:

fhfdgkykd

Prior to the invention of the WIMP interface, users often interacted with systems through _____ interfaces. Group of answer choices Audio Touch Command-based GUI

Answers

Answer:

comment Line Interface

(the command-based option)

Explanation:

Not an expert so the answer might be wrong

Prior to the invention of the WIMP interface, users often interacted with systems through command-line interfaces. Thus, the correct option is C.

What is Command Line Interface?

A command-line interpreter or command-line processor is the device and expert who uses a command-line interface to receive all the commands from a user in the form of lines of texts. This command provides a means of setting parameters for the environment, including invoking of the executables and providing information to them as to what actions they are required to perform.

User interfaces are the commands which may be of three types including command line interface, graphic user interface, and menu-driven interface. Programmers, experienced computer users, or administrators are the people who may utilize a command line interface.

Therefore, the correct option is C.

Learn more about Command-line interface here:

https://brainly.com/question/15704118

#SPJ2

What critical-thinking tool is being used when asking the question, "Is there a large enough scope of
information?"
O synergy
O breadth
O semantics
O depth

Answers

Answer:

breadth

if I am correct.

please help me asapppppp​

Answers

Answer:

lol no

Explanation:

What aligns the touch and display layers of a touch screen to ensure accurate input? I know the word starts with C has a I and T like this C . . i . . . t . . .

Answers

Ans

I think is Capacitive

Explanation:

Dude I think I forget. I remember how it work but I for get it's name I think is

Capacitive

What characteristics do black holes have?

Answers

For astronomers, the only three measurable physical properties that completely specify the characteristics of a black hole are its mass, its charge, and its angular momentum.

Other Questions
100 points!! please help, ill give brainliest!! Here are the first five terms of an arithmetic sequence.-1 3 7 11 15Find, in terms of n, an expression for the nth term of this sequence. Use the distributive property to remove the parentheses. -6(5y-2u-3) Systolic Blood Pressure for Women: Systolic blood pressure results from contraction of the heart. Based on past results from the National Health Survey, it is claimed that women have systolic blood pressures with a mean and standard deviation of 130.7 and 23.4, respectively. Use the systolic blood pressures of women listed in Data Set 1 in Appendix B and test the claim that the sample comes from a population with a standard deviation of 23.4. the abillty of an animal to produce and emit light is called identify the organism how do immigrants affect the country they move on? Big points please be a good human and help A fish swims 4 feet directly above a scuba diver. The fish suddenly dives to double its depth under the surface of the ocean. The fish dives to a depth of 34 feet.What is the position of the scuba diver relative to sea level?Choose from the drop-down menu to correctly complete the statement.The scuba diver is______feet below the sea level 3. If two creatures without wings mate, can their offspring have wings? Explain your answer. Which is the genre is best for learning about the atmospheric properties of the moon ? Instruction manual travel guide autobiography scientific text Please help me with this. I don't get it. A solution is prepared by dissolving 30. g of KNO3 into 100. mL of total solution. What is the molarity of this solution? Solve the absolute value equations algebraically|m+4|+7=11 I WILL GIVE YOU BRAINLIET PLZ HELP Which process is most directly driven by generation of an H gradient across the mitochondrial membrane A solid metal sphere with diameter 10cm needs to be covered with a protective material which costs 0.29 per cm2. How much will it cost to cover the sphere with the material? Give your answer rounded to 2 DP. When the domain is restricted, you can pick any value to substitute in for theindependent variable.TrueO False Eddys yard is 12 feet wide and 20 foot long it is covered with grass how many square feet of grass is in eddys yard Put these fractions in order from least to greatest: 2/3 1/4 and 3/8 (please hurry lol) The student applies a force of 40 N to 20 kg box Assume there is negligible friction between the box and the floor. Calculate the magnitude of the boxs acceleration.