write the code that writes access granted if the correct password, swordfish is entered and access denied! otherwise

Answers

Answer 1

In python 3.8:

if input("Enter password: ") == "swordfish":

   print("access granted")

else:

   print("access denied!")


Related Questions

write passage on computer virus​

Answers

In more technical terms, a computer virus is a type of malicious code or program written to alter the way a computer operates and is designed to spread from one computer to another. A virus operates by inserting or attaching itself to a legitimate program or document that supports macros in order to execute its code.

Answer:

A computer virus is a relatively small program that attaches itself to data and program files before it delivers its malicious act. There are many distinct types of viruses and each one has a unique characteristic. Viruses are broken up into to main classes, file infectors and system or boot-record infectors.

hope it helps
Other Questions
Which of the following issues was a common problem that encouraged countries to transition from a command economy to a market system?A.privatization of industryB.decreased government regulationC.rationing and shortagesD.increased productionHELP PLEASE!!! Give 5 examples of natural rsources. Explain the figurative language in the title, Translating Grandfathers House. What does the speaker mean by saying that he has translated his grandfathers house? Which type of energies make up the mechanical energy of a roller coaster moving along a track? The floor plan for Jacob's living room is shown below.What is the area, in square feet, of Jacob's living room?129114181144 please solve 2x^2 -4x - 48 = 0 show me a picture of any color you want and if I like that color you get brainelst 1. If you were a transformer, what vehicle would you turn into?2. What laws would you abolish if you could? What laws would you create?3. If you were a food, what food would you be?4. What animal would be way better if it was covered in scales?5. What would be your strategy for a zombie apocalypse? 6. If you could be the CEO of any company, what company would you choose? To achieve which of the following goals would rotational grazing be most appropriate? (3 points)-To maximize livestock populations while minimizing costs-To preserve vegetation and soil fertility of land-To involve townspeople in the operations of a nearby farm-To transform an abandoned city lot into a neighborhood garden From the maps, whenwas the last time the totalnumber of electoral voteschanged? What causedthis? La clase de la Sra. Garza es grande. Hay cuatro ventanas y una puerta. En la clase hay escritorio, pupitres, y sillas, reloj, cesto de papeles, pizarra y sacapuntas. Los estudiantes tienen libros y bolgrafos en sus mochila Fill in the blanks What is the most convenient way to study? As an estimation we are told 5 miles is 8km Convert 4 km to miles A student has a container with the volume 1.5 liters. She estimates the volume to be 1.2 liters. By what percent is the student's estimate off? I don't need a step-by-step explanation, I just want the right answer. Danger! This Mission to Mars Could Bore You to Death! 1. What is the topic the author is exploring in Danger! This Mission to Mars Could Bore You to Death!? 2. What is the author's purpose in exploring this topic? 3. How are the sections of the selection related to one another? 4. Give an example of a fact used to support a major idea in the selection. Anyone know this pls help me Its easy! If right will give brainlist! Don't overthink..:) Just answerThe virtual image changes with the position of the mirror to the eye when the mirror is..............?Fill in the blanks In its American colonies, Spain helped the Catholic Church meet its goal offinding gold.gaining territory.converting people.achieving glory.This is from ed please help thank you A car traveling at 50 m/s comes to a stop in 5 seconds. What is theacceleration of this? How much work is required to pull a sled if you use 60J of work in 5 seconds?