Quizne
Quizne
zalo desktopzalo mobile

CÂU HỎI: ĐÂU LÀ MỘT VÍ DỤ VỀ CLOSURE SỬ DỤNG TRẠNG THÁI BÊN TRONG?

NeNe run

Want to know the answer? Start playing now!

[Python Intensive Course] Quiz 9
0 Questions
4 Plays

[Python Intensive Course] Quiz 9

avatar
Yen Trinh
Level:
Easy
[Python Intensive Course] Quiz 9
Question Types: Multiple choice
Answers:

- def make_counter(): count = 0 def counter(): nonlocal count count += 1 return count return counter

- def make_counter(): def counter(): return 0 return counter

- lambda x: x*x

- def fib(): a, b = 0, 1 while True: yield a a, b = b, a + b

zalo desktopzalo mobile