Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Spring Project - #191

Merged
codedragon merged 15 commits into
UWPCE-PythonCert:masterfrom
ea8606:master
Mar 12, 2018
Merged

codedragon merged 15 commits into
UWPCE-PythonCert:masterfrom
ea8606:master

Conversation

@ea8606

@ea8606 ea8606 commented Mar 8, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@codedragon

Copy link
Copy Markdown
Contributor

Hi Eric,

Wow, this is cool, nice work. Yay, tests! Some quick notes, as I haven't gone though everything yet, kind of a quick pass. Mostly you have nice small testable functions, but there are a couple that have a lot of loops and conditionals. I would work on getting those smaller. I think one of them even had it so that it would return different things in different orders, depending on input variables. If you can't figure out how to break it up, let us know and we may be able to help. (This is assuming that you want to continue working on it, as this as is would more than suffice as project turned in)



class airports():
""" Create some methods to help answer some questions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good to follow convention and capitalize classes.

Return:
None
"""
# in case this class is subclassed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What does this comment refer to?

# Sample entry of country = country['JP', 'no'] or ['JP', 'yes']
if self.scheduled_or_not_scheduled is True:
self.scheduled_or_not_scheduled = "yes"
if self.scheduled_or_not_scheduled is False:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can just do if self.scheduled_or_not_scheduled: or if not self.schedule_or_not_scheduled, no need for the 'is Trueoris False`

@codedragon
codedragon merged commit 3aaab28 into UWPCE-PythonCert:master Mar 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants