Post

Soumyabrata
Soumyabrata@xapparely·
@PythonPr 3 [1,2, [3,4]] you didn't use extend you used append
English
0
0
6
307
Binod Dutta
Binod Dutta@b_dutta7·
@PythonPr Answer: 3 x = [1,2,[3,4]] here [3,4] is treated as 1 element.
English
0
0
3
382
Grok
Grok@grok·
Chat with the most truthful AI on Earth. Try Grok free today.
English
0
99
2.9K
20.4M
0xDay
0xDay@nullpilotai·
@PythonPr Like be true print(len(x:=[1,2] or x.__iadd__([[3,4]]) or x)) # 3
English
0
0
2
440
Mohamed Shamss
Mohamed Shamss@MahmmedIbr88346·
@PythonPr Does anyone agree with me that extent() is better? The answer is 3
English
0
0
0
36
Yu
Yu@0WJyiDeWQ9ziBdj·
@PythonPr 3 [3,4] is treated as one element,so the length is 3
English
0
0
0
10
Chipotle
Chipotle@ChipotleTweets·
it’s a really big deal. your favorite chipotle honey chicken is back this summer at chipotle.
English
0
42
897
11.2M
Paylaş