Post

Star Wars
Star Wars@starwars·
an icon. For more Padmé watch The Phantom Menace streaming on Disney+.
English
766
1.6K
21.1K
24M
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr Still there since the remove method only removes the first match. The last 2 is still there.
English
0
0
2
878
Smart💡
Smart💡@capt_ivo·
@PythonPr Python List is used when you know the specific value you want to get rid of, but not necessarily where it is in the list. So since 2 is in the List, 2 is yanked off
English
0
0
0
1.5K
Theoden
Theoden@J_Theoden·
@PythonPr The output will be "Still There." The remove method will remove the first occurrence of the element given it, in this case the value of 2. Since a second value of 2 is in the list, it will remain and the "Still There" will print. The value x after the remove would be: [1, 3, 2]
English
0
0
4
1.1K
Robert S. Robbins
Robert S. Robbins@Robert_Robbins·
@PythonPr Your code will not compile because it has a drop shadow. This will prevent the compiler from reading the code.
English
0
0
2
718
Grok
Grok@grok·
Ready to bring ideas to life? Try Grok Imagine today
English
0
1.3K
10.1K
26.9M
Paylaş