x= [1,2,3,4,3,2,1] x=list(dict.fromkeys(x)) x.pop(0) print(x) ————————— A- [1,2,3,4,3,2,1] B- [2,3,4,3,2] C- [2,3,4] D- [] #Python_quiz
3
5
8
1
0
Tweet ini tidak lagi tersedia.
dict.fromkeys(x) تقوم بحذف العناصر المتكررة pop(0) تقوم بحذف اول عنصر
0
1
0
0
0
United States Tren
- 1. Bears 126K posts
- 2. Caleb Williams 32.7K posts
- 3. Malik Willis 14.2K posts
- 4. #BearDown 4,105 posts
- 5. Nixon 11.1K posts
- 6. Ben Johnson 8,621 posts
- 7. Doubs 8,538 posts
- 8. Oregon 34.6K posts
- 9. Jordan Love 12K posts
- 10. #GoPackGo 7,668 posts
- 11. Bowen 10.6K posts
- 12. Tulane 31.6K posts
- 13. #GBvsCHI 3,106 posts
- 14. Cher 34.6K posts
- 15. Duke 25.3K posts
- 16. Texas Tech 6,906 posts
- 17. LaFleur 4,028 posts
- 18. James Madison 9,603 posts
- 19. GOOD BETTER BEST 3,409 posts
- 20. Cairo Santos 1,359 posts
Loading...
Something went wrong.
Something went wrong.