Code Nexus
CurriculumHow we teachPricingBlogAboutContact
Start learning
  1. Curriculum
  2. /
  3. Season 2
  4. /
  5. Episode 5

Season 2: The Python Team · Episode 5 of 8

Meet the Creator Object

You play: AI Engineering Trainee

Free
Start this episode free

Episodes run on a tablet or larger screen.

The situation

Code Nexus keeps a creator's data in about six different dictionaries across the codebase, and they drift out of sync — the dashboard shows a follower count the report doesn't. The team wants one small, understandable object per creator.

What you'll learn

  • PCAP 4.1-4.3 and 4.6: defining classes, instances vs the class, attributes and methods, `self`, `__init__`, instance state vs class state, and name mangling.
  • __str__ versus the default representation, __dict__, hasattr, getattr and setattr, name mangling, and why __init__ returns None.

Who you work with

  • Maya Chen

    Senior AI Engineer · Your mentor

  • Leo Martins

    Product Manager

Scenes

  1. 1.Six dicts, one truth
  2. 2.Shared or per-instance?
  3. 3.What does print(obj) show?
  4. 4.Build Creator and Report
  5. 5.The silent mutation
  6. 6.Objects check

What you leave with

Code Nexus has one Creator object per creator that validates its own follower count, and a Report built from Creator objects that asks each one for its engagement rather than reaching into its attributes. You also found the shared-list defect that was merging every creator's history.

Previous episode

Emoji Are Not Always One Thing

Next episode

The Inheritance Plot Twist

Code Nexus

Practice first. Improvise less later.

We post practical tech tips and the odd 8-BIT opinion. Mostly the tips.

The CPD Group Approved Provider #791172

Learn

  • Curriculum
  • Pricing
  • Create account
  • Sign in

Support

  • Blog
  • Certification guides
  • About Code Nexus
  • How we teach
  • Human help

Legal

  • Terms and Conditions
  • Privacy Policy
  • Cookie Policy
  • Refund and Cancellation
  • Contact: contact@codenexus.co.za

© 2026 Code Nexus. All rights reserved.

Payments secured by Payfast · Billed in ZAR · South Africa