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
Answer:
The answer would be A: Random
Explanation:
The random() function returns a generated random number (a pseudorandom number)
#4 is true
We use pseudocode to help us understand code.
#5 is false
Strings are surrounded by quotes, integers are not.
#6 is 100.
Integers are numbers with no decimal places.
Answer:
c)1e6f28
Explanation:
The integer pointer intpoint2 points to the address 1e6f24.On increasing the inpoint.The intpoint will point to next location and since we know that the memory taken by integers is 4bytes.So the pointer will move to the next location 4 bytes ahead.
1e6f24+4=1e6f28.
Hence the answer is option c.