TGViewer
PyNotes PyNotes @py_notes_uz · 207 subscribers
Post #57 230
Instead of this
names = ['Alice', 'Bob', 'Dilbert']
Use:
>>> names = [
... 'Alice',
... 'Bob',
... 'Dilbert',
... ]

That way there’s one item per line, making it perfectly clear which one was added, removed, or modified when you view a diff in your source control system. It’s a small change but helpful to avoid silly mistakes. It also easier for your teammates to review your code changes.

#Source "Python Tricks" by Dan Bader
More from @py_notes_uz
  1. Oct 13, 2026📢 Ertaga meetup qilyapman Ertaga, 14-oktabr kuni INHA universitetida meetup o'tkazaman. T…
  2. Sep 10, 2026👋 Accepted AI Men sizga orzuingizdagi ishga qabul qilinishda yordam beraman: 📊 CV'ingizn…
  3. May 5, 2026Middle/Senior Full Stack (Python+TypeScript) | Sigma Software Qualifications • 6+ years of…
  4. Apr 16, 2026🇺🇿 o'zbek tilida 🇷🇺 на русском AI Incubator 2026 — Applications Open 🚀 Launch your AI…
  5. Mar 24, 2026Want to learn how AI agents are built at Yandex? The Yandex School of Data Analysis is run…
  6. Feb 17, 2026💡 Python bo'yicha ko'nikmalaringizni sanoat standartlari darajasiga oshirishni va mutaxas…
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 →