So here's my problem, guys. I've finished a lesson in Udacity and I found out that my job does not restrict access to Udacity or Youtube, so that's pretty cool... but I'm hung up on one of the "optional questions" at the very end of the unity.
Just one.
Only one question. And I can't figure it out.
And it's probably there to just be like "haha look at this unreasonable question, you should strive to be such a baller that you can solve this one day" but I think the gaming culture of today is keeping me from continuing on without clearing EVERY. SINGLE. QUESTION as if I'll get some virtual trophy for being a cool dude.
And I'm probably overreacting, as well. The problem isn't that complex... here it is:
# Given your birthday and the current date, calculate your age in days.
# Account for leap days.
#
# Assume that the birthday and current date are correct dates (and no
# time travel).
#
def daysBetweenDates(year1, month1, day1, year2, month2, day2):
##
# Your code here.
##
I feel like it's going to be very hard to determine what lies between two dates. I can't import any fancy stuff I can only use some loops and basic stuff.
If I figure it out throughout the day I'll post my code so you guys can be proud of me and draw me an achievement trophy and post it on f-book for everyone to see.
No comments:
Post a Comment