Post

Python Space
Python Space@python_spaces·
Python Quiz #6 What is the output of this code snippet? A) [1, 2, 3] [1, 2, 3] B) [1, 2, 3, 4] [1, 2, 3] C) [1, 2, 3, 4] [1, 2, 3, 4] D) [1, 2, 3] [1, 2, 3, 4] Let me know your answers in the comments🧵👇
English
22
22
102
38.7K
Dika
Dika@iam__onyedika·
@python_spaces Ans: C add_value: list + list == concatenated list put_value: appends "4" to end of list
English
1
0
0
379
Nilofer 🚀
Nilofer 🚀@Nilofer_tweets·
@python_spaces My answer is D as the second function is not a pure function and it update the numbers list.
English
0
0
0
532
Paylaş