CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #24

What The Caller Sees

hardFunctions

📄 Code

Read carefully — what does this print?
1def add_bonus(marks: list[int]) -> None:
2 marks[0] = marks[0] + 5
3 
4def reset(marks: list[int]) -> None:
5 marks = [0, 0]
6 
7grades: list[int] = [70, 80]
8add_bonus(grades)
9print(grades)
10reset(grades)
11print(grades)

🎯 Your Answer