Answer:
To verify transactions have the correct date assigned to them.
To verify that an account balance is within its credit limit.
To verify that all transactions have been recorded for the period.
Explanation:
Answer:
The Python code is given below for each question.
Explanation:
1:
if __name__ == '__main__':
f = open('golf.txt', 'w')
n = int(input("Enter number of players:"))
for i in range(n):
name = input("Enter name of player number " + str(i + 1) + ":")
score = int(input("Enter score of player number " + str(i + 1) + ":"))
f.write(name + "\n" + str(score) + "\n")
f.close()
2:
try:
with open('golf.txt') as r:
lines = r.readlines()
for i in range(0, len(lines), 2):
print("Name:", lines[i].strip())
print("Score:", lines[i+1].strip())
print()
except FileNotFoundError:
print("golf.txt is not found!")
Comparison operators are used to compare between objects!
are they equal? is one greater than the other?
if (a == b) ++a;
if (a > b) a = b;
for example when we use a sort function, comparison operators are used inside the function.
Answer:
its b i just took the test
Explanation:
No you can report it tho it’s annoying