Skip to content

Hargobind-Atwal-Intro-Python-I - #2

Open
ethiapath wants to merge 16 commits into
masterfrom
hargobind-atwal
Open

ethiapath wants to merge 16 commits into
masterfrom
hargobind-atwal

Conversation

@ethiapath

Copy link
Copy Markdown
Owner

@JGolden25 I think I did this right

@JGolden25

Copy link
Copy Markdown

Everything looks good for day 1, great job figuring out the problems and new syntax.

Comment thread src/classes.py Outdated
# YOUR CODE HERE
class Geocache(Waypoint):
def __init__(self, name, difficulty, size, lat, lon):
Waypoint.__init__(self, name, lat, lon)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super could be applied here to make your code DRYer in the long run
super().init(name, lat, lon)

over all nice job finishing classes, this part will help you w/the rest of the week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants