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
koban [17]
2 years ago
6

def transfer(bank, log_in, userA, userB, amount): ''' In this function, you will try to make a transfer between two user account

s. bank is a dictionary where the key is the username and the value is the user's account balance. log_in is a dictionary where the key is the username and the value is the user's log-in status. amount is the amount to be transferred between user accounts (userA and userB). amount is always positive. What you will do: - Deduct the given amount from userA and add it to userB, which makes a transfer. - You should consider some following cases: - userA must be in the bank and his/her log-in status in log_in must be True. - userB must be in log_in, regardless of log-in status. userB can be absent in the bank. - No user can have a negative amount in their account. He/she must have a positive or zero balance. Return True if a transfer is made. For example:
Computers and Technology
1 answer:
laiz [17]2 years ago
8 0

Answer:

def transfer(bank, log_in, userA, userB, amount): ''' In this function, you will try to make a transfer between two user accounts. bank is a dictionary where the key is the username and the value is the user's account balance. log_in is a dictionary where the key is the username and the value is the user's log-in status. amount is the amount to be transferred between user accounts (userA and userB). amount is always positive. What you will do: - Deduct the given amount from userA and add it to userB, which makes a transfer. - You should consider some following cases: - userA must be in the bank and his/her log-in status in log_in must be True. - userB must be in log_in, regardless of log-in status. userB can be absent in the bank. - No user can have a negative amount in their account. He/she must have a positive or zero balance. Return True if a transfer is made. For example:

Explanation:

i know this much

You might be interested in
GPS data can be used to track the rate and direction of plate movement. If a GPS unit measures a latitude velocity of 28.2 mm/yr
bezimeni [28]

Answer and Explanation:

Rate and direction of plate movement  obtained by using a latitude velocity of 28.2 and a longitude velocity of 59 then velocity of plate motion.

latitude velocity of 28.2 mm/yr

longitude velocity of 59 mm/yr

velocity = s/t  but ib calculation GPS using formula where

a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)

c = 2 * atan2( √a, √(1−a) )

d = R * c

then velocity of plate motion is 65.4 mm/yr

3 0
2 years ago
Why did LISD had to block the game “among us”?
frosja888 [35]
Lewisville Independent School District blocked the following program: Among Us because the game was a distraction to online education. Normally, school districts disable/block games that students play to make sure they are not just playing games and that they are paying attention during class.
3 0
3 years ago
Read 2 more answers
What does a professional programmer usually do first to gain an understanding of a problem?
ElenaW [278]
The correct answer to your question is:

Professional programmers work directly with, and interview customers to find out what the problem is.
6 0
2 years ago
Read 2 more answers
__________ is a computer tool for evaluating the risk of exposure to wildfires.
Brut [27]

Answer:

The statement is true

Explanation:

5 0
1 year ago
Read 2 more answers
Guyssss......urgent helppp plsss answerrrr
kirill115 [55]

Explanation:

XML

<h2><em><u>pls</u></em><em><u> </u></em><em><u>mark</u></em><em><u> </u></em><em><u>me</u></em><em><u> </u></em><em><u>as</u></em><em><u> </u></em><em><u>brainlist</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>!</u></em><em><u>!</u></em></h2>
7 0
2 years ago
Other questions:
  • Which of the following represent typical account fees?
    7·1 answer
  • Which javascript method should you use if you want to specify a message string to appear on your web page as it loads?
    13·1 answer
  • How to write a program converting RGB to CMYK in python
    6·1 answer
  • Your program will demonstrate use of arrays, searching an array, using methods, passing parameters by reference, returning value
    13·1 answer
  • Complete the following statement: Sustainability is: Choose all that apply.This task contains the radio buttons and checkboxes f
    10·1 answer
  • CLICK ME IF U DARE hehehe
    10·2 answers
  • Which operating system (OS) is used to run your laptop?
    15·2 answers
  • Sendddd meeeee memessss plsssssss
    8·2 answers
  • Identifying correction services tasks
    14·2 answers
  • your sales operations group would like to perform monthly analyses on large amounts of sales activity. they want to be able to r
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!