✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Given the global variable counter
and followed by function calls with their expected behavior, choose all correct definitions of update_value()
and reset_counter()
functions
counter = 0
update_counter(5) # counter becomes 5
update_counter(3) # counter becomes 8
reset_counter() # counter becomes 0
update_counter(2) # counter becomes 2
print(counter) # Output: 2
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!