Skip to content

petepall/Treehouse_project_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treehouse_project_2

Basketball Team Stats Tool

Basketball Team Stats Tool

In this project you will be writing a program that reads from the "constants" data (PLAYERS and TEAMS) in constants.py. This data will need to be translated into a new collection of your choosing and the fields need to be changed to something that makes more sense for Python to do its comparisons.

NOTE: Python has no concept of actual constants like some other languages out there. But it is a convention in Python to treat ALL CAPS variables as if they are in-fact constants.

Steps to get started:

  1. Create a new empty script file called app.py or application.py

  2. Inside this new file, you will want a Dunder Main statement: For a refresh on Dunder Main: https://teamtreehouse.com/library/understanding-dunder-main-main

  3. Any print statements or function calls you will want to be inside Dunder Main or inside a main function call which is nested inside Dunder Main. If you need a refresh, check out the supplied Project 1 files/workspace for an example.

Example

BASKETBALL TEAM STATS TOOL

---- MENU----

 Here are your choices:
  1) Display Team Stats
  2) Quit

Enter an option > 1

1) Panthers
2) Bandits
3) Warriors

Enter an option > 1

Team: Panthers Stats
--------------------
Total players: 6

Players on Team:
  Karl Saygan, Chloe Alaska, Phillip Helm, Suzane Greenberg, Herschel Krustofski, Joe Smith

Press ENTER to continue...

Version 1.0 - Submitted on May 20, 2019

About

Basketball Team Stats Tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages