Skip to content

Conversation

@sling254
Copy link

submission for bus fare challenge

submission for bus fare challenge
Copy link
Member

@wwangwe wwangwe left a comment

Choose a reason for hiding this comment

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

One more variable, fare, needs to be utilized for the checker to pass. Inside the if statements assign the corresponding bus fare and then you can eventually print out the results at the end, outside the if statements.
Correct the two, the rest look great.


#Get todays date and store it in a variable 'date'

date = datetime.now()
Copy link
Member

Choose a reason for hiding this comment

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

This is almost correct, only that datetime.now() alone returns the full date including time and timezone. The challenge only needs the date, find a way to pull this off.
Hint: add another attribute to this line to specify the date alone.

@sling254
Copy link
Author

I have committed the changes

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