Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Student's Guide to Python 3 - Part 4
Rating: 3.8 out of 5(26 ratings)
6,211 students

Student's Guide to Python 3 - Part 4

Learn Python 3, a great introductory course for students
Created byPaul Kang
Last updated 7/2020
English
English [Auto],

What you'll learn

  • Python 3

Course content

1 section17 lectures1h 28m total length
  • General Introduction10:30

    Explore how Python uses classes to define objects, their properties and methods, and how subclassing creates soccer balls from a ball with actions like dribble and kick.

  • Intro to Classes4:58

    Create your first class and instantiate an object in Python using a simple ball example, then print the type to verify the class. Next, explore class-wide properties in upcoming lessons.

  • Intro to Classes Exercises0:24
  • Class Variables3:41

    Define class variables in a class and access them on an object with dot notation; these boolean properties like roundedness, bouncy, and airfield are true for all balls.

  • Class Variables Exercises0:32
  • Dunder Methods11:51

    Explore dunder methods in Python, including init and repr, and learn how self enables object-specific attributes like size and color while using methods on dictionaries and classes.

  • Dunder Methods Exercises0:47
  • Class Functions6:39

    Learn how class methods use self and normal functions within objects, with default parameters and return values. See examples like bouncing a ball and calculating sphere volume to manage data.

  • Class Functions Exercises0:40
  • Inheritance10:30

    Learn how Python classes model objects, using a ball as a parent class and soccer ball as a subclass, with shared properties and methods like dribble and kick.

  • Inheritance Exercises0:37
  • Overwriting Inherited Function7:46

    Override class functions effectively by calling the superclass initializer with essential parameters and add new ones like condition, improving readability and avoiding repetitive rewrites.

  • Overriding Inherited Functions Exercises0:59
  • Polymorphism9:44

    Explores polymorphism in Python by redefining the add operation for a custom ball class, showing how the plus sign can combine radii of two balls and other types.

  • Polymorphism Exercises0:33
  • Project: Electronics2:11
  • Project: Electronics - Solution and Walkthrough15:50

    Create an electronics store inventory system in Python by building a base electronic class, implementing repr and on/off toggles, and adding vacuum and phone subclasses with browsing history.

Requirements

  • Student's Guide to Python 3 - Part 3

Description

As our world becomes more and more technologically advanced, we become immersed in a digital era. In these modern times, it is important to learn how to code, and especially important for students to learn as the possibilities surrounding code are infinite. Especially with the current advent of machine learning, Python is one of the easiest and most powerful languages available, and having it in your arsenal is an excellent tool in this day and age. This is Part 4 of a 4 part course in Python.

Who this course is for:

  • Students with little/no experience coding