DEV Community

b c
b c

Posted on

Building a Fantasy Player Analysis Tool Using Python

As part of my Codecademy course in Python programming, I wanted to build something that connects my love for sports with my learning journey. Being a big fan of fantasy basketball, I thought, why not create a tool to analyze and predict player performance? This project combines my passion for sports with programming and allowed me to practice key concepts like classes, methods, and user interaction in Python

## Building the Player Class

Here is the class I created to represent a player:

Enter fullscreen mode Exit fullscreen mode


python
class Player:
def init(self, name, points, assists, rebounds):
self.name = name
self.points = points
self.assists = assists
self.rebounds = rebounds

Image description



Enter fullscreen mode Exit fullscreen mode

Top comments (0)