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
6
8
1
0
هذه التغريدة لم تعد متوفرة.
dict.fromkeys(x) تقوم بحذف العناصر المتكررة pop(0) تقوم بحذف اول عنصر
0
1
0
0
0
United States الاتجاهات
- 1. #WWERaw 32.6K posts
- 2. Chiefs 59.2K posts
- 3. Maxey 6,471 posts
- 4. Kelce 10.1K posts
- 5. Mariota 6,224 posts
- 6. Glasnow 5,260 posts
- 7. Mahomes 17.4K posts
- 8. #RaiseHail 5,719 posts
- 9. Freddie 9,616 posts
- 10. #WorldSeries 44.7K posts
- 11. Sixers 11K posts
- 12. Lattimore 2,761 posts
- 13. Edman 2,825 posts
- 14. Deebo 4,896 posts
- 15. Kareem Hunt 1,707 posts
- 16. Alejandro Kirk 5,943 posts
- 17. Grokipedia 17.8K posts
- 18. #Commanders 2,199 posts
- 19. Scherzer 11K posts
- 20. Scary Terry 1,265 posts
Loading...
Something went wrong.
Something went wrong.