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]
3 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]3 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
Can someone help me calculate this Multimedia math:
IRISSAK [1]

Answer:

I will try to help you answer this. it seems really confusing but I'll do my best to solve it and get it back to you. Hope I'm able to help!

5 0
3 years ago
To track conversions in an app, you can add the firebase sdk to your app. sdk stands for:
Setler [38]
<span>To track conversions in an app, you can add the firebase SDK to your app. SDK stands for: Software Development Kit.
</span>SDK includes <span>value-add tools, utilities, and framework components that are intended to provide a productivity boost when implementing and also licences </span><span>
that make them unsuitable for building software intended to be developed under an incompatible license.
</span>

8 0
4 years ago
Why are laptop employment of computer popular these days​
steposvetlana [31]

Answer:

Because due to pandemic all the offices and employment sector are closed physically and to make their work smoothly people are preferring virtual platforms with the concept of work from home .

I hope it is helpful and mark me as brainlest and follow me plllzzz♥️♥️

7 0
3 years ago
Which of the following is ideal for long distance communication ?
Vinvika [58]
Microwave transmission is ideal for long distance communication. It is so good that it is used for satellite and space probe communication.
3 0
4 years ago
What defines a social search?​
Nimfa-mama [501]

Known or unknown information on any subject been searched in the website such as googe.com, bing.com, ask me.com, LinkedIn, Twitter etc.

<u>Explanation:</u>

End user will receive information (multiple links) on the same subject on internet browser.

End user has to read and understand the information and pick up the right information on their further studies.

All the website will have their or search engines to retrieve the information on social search. In other way it makes our knowledge easily to understandable version rather referring the books.

8 0
3 years ago
Other questions:
  • Explain how abstraction is used in a GPS system
    12·2 answers
  • Tanya has received an email, apparently from her bank, stating that some of her records were lost during server maintenance work
    13·2 answers
  • What does confidentiality of data refer to?
    6·2 answers
  • Select the correct answer from each drop-down menu.
    8·1 answer
  • If the force of gravity _ then the weight of an object will _
    8·2 answers
  • A7DF is the hexadecimal representation for what bit pattern?
    8·1 answer
  • To recover from driving off the road steer back onto the road in then ?
    14·2 answers
  • In c++
    12·1 answer
  • Why is it important to install updates? Why should you use the Power button on the Start menu instead of the Power button on you
    7·1 answer
  • Please tell me which ones go into which categories no files!!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!