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
Oxana [17]
3 years ago
8

Write A Code In Python

Computers and Technology
2 answers:
aleksandr82 [10.1K]3 years ago
5 0

Answer:

print('Enter correct username and password combo to continue')

count=0

while count < 3:

   username = input('Enter username: ')

   password = input('Enter password: ')

   if password=='Hytu76E' and username=='bank_admin':

       print('Access granted')

       break

   else:

       print('Access denied. Try again.')

       count += 1

koban [17]3 years ago
3 0

Answer:

Here is my code below: username = 'Polly1220' password = 'Bob' userInput = input("What is your username?\ n") if userInput == username: a=input("Password?\ n") if a == password: print("Welcome!") else: print("That is the wrong password.") else: print("That is the wrong username.")

You might be interested in
What integer is represented by the following 8-bit twos complement representation: 1011 0000 ? (Enter your number in decimal, an
Katyanochek1 [597]

Answer:

-80

Explanation:

We have:  1 0 1 1   0 0 0 0

Then we assign to each digit the corresponding power of 2.  

See it in a table:

\begin{matrix}1&0&1&1&0&0&0&0\\2^7&2^6&2^5&2^4&2^3&2^2&2^1&2^0 \end{matrix}

Then multiplying each digit by its corresponding power of 2 and then adding the results, we get:

-2^7+2^5+2^4

Notice the very first digit to the left corresponding to the 2^7 power should be negative according to the format of two’s complement representation.

We get:

-128+32+16=-80

8 0
3 years ago
A developer has been asked to create code that will meet the following requirements: Receives input of: Map, List Performs a pot
Sophie [7]

Answer:

The answer is "Option D'

Explanation:

Queue-able framework is used to control the Apex codes, it also allows users to connect and track workers on the line. It was an improved way to manage the asynchronous apex code in contrast to possible approaches, that use this framework, and other choices were incorrect, that can be described as follows:

  • In option A, It's not correct because, It can't control apex code.
  • In option B, The database can't use to call outs interface, that's why it is wrong.
  • In option C, It contains methods, that's why it is wrong.
4 0
3 years ago
You can use this effect to break a color into a percentage of its full strength.
Dmitriy789 [7]
The answer on this scenario would then be c. drop out. This effect can be done if one wants to break a color into one's percentage of the full strength. Hope this is the answer and would be of big help.
6 0
3 years ago
Write a pseudocode to print the sum of first 10 terms in the series: <br> 2, 4, 9, 16, 25…
Ksenya-84 [330]

Answer:

2,4,9,16,25,36,49,64,81, 110 , 121, 144

7 0
3 years ago
Design the below using an array// Sunrise Freight charges standard// per-pound shipping prices to the five states they serve// –
Nataliya [291]

Answer:

string state

num pounds

num SIZE = 5

string STATES[SIZE] = [“IL”, “IN”, “OH”, “MI”, “WI”]

num PRICES[SIZE] = [0.60, 0.55, 0.70, 0.65, 0.67]

num temp

string foundIt

string BAD_STATE_MSG = "Sorry, we do not ship to ”

string FINISH = “XXX”

getReady()

while state <> FINISH

findPrice()

endwhile

finishUp()

stop

getReady()

output "Enter state or ", FINISH, " to quit"

input state

return

findPrice()

foundIt = "N"

temp = 0

index = 0

while temp < SIZE

if state = STATES[temp] then

foundIt = "Y"

index = temp

temp = SIZE

endif

temp = temp + 1

endwhile

if foundIt = "N" then

output BAD_STATE_MSG, state

else

price = PRICES[index]

output “Enter pounds “

input pounds

output “Cost per pound to ship to ”, state, “ is ”, price

output “Total cost is ”, price * pounds

endif

output "Enter next state or ", FINISH, " to quit"

input state

return

finishUp()

output "End of job"

return

Explanation:

  • Initialize the required variables and arrays.
  • Inside the while loop, call the findPrice() method.
  • Run a while loop until temp is less than Size.
  • If state is found then set the value of foundIt variable to "Y" and assign the value of temp to index variable.
  • Finally call the finishUp method and return.

3 0
3 years ago
Other questions:
  • The ____ operator eliminates duplicate values in the results of a query.
    11·1 answer
  • Create a SavingsAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the sav
    10·1 answer
  • A SmartArt graphic consists of two parts: the SmartArt graphic itself and a(n) ____ pane.
    5·1 answer
  • _____ involves storing data and running applications outside the company’s firewall. answer grid computing parallel computing cl
    11·1 answer
  • What is a special character when creating a password?
    8·2 answers
  • A void function can return any value. TRUE FALSE
    8·1 answer
  • What effect does social media have on teens?
    10·2 answers
  • Using a while loop, create an algorithm extractDigits that prints the
    6·1 answer
  • ***URGENT***
    8·1 answer
  • Who invented Satellites? What purpose does it serve? How has it impacted society today?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!