Skip to content

Learning Python: Day 51

Creating a settings class

  • create a module called settings to contain a class called Settings
  • Create a new file settings.py in your folder
  • to make an instance of Settings in project and use it to access our settings, we need to modify alien_invasion.py
  • no changes when running alien_invasion.py again because we moved all the settings
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *