TGViewer
کُدچی | Codechee کُدچی | Codechee @codechee · 18 subscribers
Post #22 122
متود‌های مهم و کاربردی لیست‌ها در پایتون 🐍
#cheatsheet

[🟣, 🟡, 🟣, 🟡].append(🟥) => 🟣🟡🟣🟡🟥

[🟣, 🟡, 🟡].extend([🟥, 🟣]) => 🟣🟡🟡🟥🟣

[🟡, 🟣, 🟥].insert(1, 🟢) => 🟡🟢🟣🟥

[🟡, 🟣, 🟥].remove(🟣) => 🟡🟥

[🟡, 🟣, 🟣, 🟥].pop() => 🟥 [🟡🟣🟣]

[🟡, 🟣, 🟣].pop(1) => 🟣 [🟡🟣]

[🟣, 🟡, 🟥].index(🟡) => 1

[🟡, 🟡, 🟣, 🟡].count(🟡) => 3

[🟥, 🟣, 🟡, 🟡].sort() => 🟡🟡🟣🟥

[🟣, 🟡, 🟡, 🟥].reverse() => 🟥🟡🟡🟣

[🟣, 🟡, 🟣, 🟡].copy() => [🟣, 🟡, 🟣, 🟡]

[🟣, 🟡, 🟡, 🟣].clear() => []

[🟣, 🟡, 🟣].slice(1:2) => 🟡

[🟡, 🟡, 🟣].join(' - ') => 🟡 - 🟡 - 🟣

[🟣, 🟡, 🟡].contains(🟡) => True

[🟡, 🟡, 🟥].rindex(🟥) => 2


👨🏻‍💻 @Codechee </> کُدچی 🐍
  • ❤ 3
More from @codechee
  1. Aug 3, 202511 سالته، کامپیوترت رو روشن میکنی، word رو باز میکنی و بعدش اسمت رو توی استایل‌های مختلف م…
  2. Jul 27, 2025photo post
  3. Jun 8, 2025#music
  4. May 13, 2025دسترسی به GPT 4.1 و O4-Mini و چند مدل دیگه به صورتِ رایگان و نامحدود، بدونِ نیاز به ثبت‌نا…
  5. Apr 27, 2025#music 🌙🎧
  6. Apr 13, 2025🤣🤣 وقتی میگن تو برنامه نویس خوبی هستی. تصور من: ‌👨🏻‍💻 @Codechee </> کُدچی 🐍
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →