Next Steps in Python: Introduction to Object Classes (Virtual)

Next Steps in Python: Introduction to Object Classes (Virtual)

By Northwestern IT Research Computing & Data Services
Online event

Overview

Create your own custom Python objects to level up your research code.

Sometimes the built-in Python objects (strings, integers, lists, etc.) aren’t specific enough to describe your data. If you study a particular object (e.g., planets, cells, materials, mouse whiskers, hummingbirds, musical notes, humans, etc.) that has particular attributes (e.g., mass, function, strength, length, speed, pitch, age, etc.) and undertakes particular behaviors (e.g., rotating, splitting, decomposing, twitching, hovering, harmonizing, dancing, etc.), you may want to create a custom object class! In this session, you will learn how to define new classes of varying complexity with unique attributes and methods. You will practice creating multiple instances of your object, setting and changing their attributes, and applying their methods. You will define object classes through inheritance of attributes and methods from other object classes, and you will learn about the Object-Oriented Programming style of coding.

Prerequisites: Participants should be familiar with Python at the level of the Python Fundamentals workshop, another introductory Python workshop, or be a self-taught Python coder.

Category: Science & Tech, Science

Good to know

Highlights

  • 1 hour
  • Online

Location

Online event

Organized by

Free
Jan 12 · 10:00 AM PST