Comments (3)
from 100daysofcode-with-python-course.
Hey @OneThirtySeven I quickly checked and this is not an exercise bug, it's a failing submission.
where None = get_hundred_days_end_date()
means you are not returning anything from the function.
Change your print
s to returns and that fixes that issue.
There is another problem to fix (you're close!), it has to do with the return type of get_days_between_pb_start_first_joint_pycon()
- you have str, but as per the test it needs to be
int(hint: you can call
dayson a
timedelta` object ...)
HTH
Bob
from 100daysofcode-with-python-course.
from datetime import date, timedelta
start_100days = date(2017, 3, 30)
pybites_founded = date(2016, 12, 19)
pycon_date = date(2018, 5, 8)
def get_hundred_days_end_date():
"""Return a string of yyyy-mm-dd"""
end_date=timedelta(days=100)
finish_day = str(start_100days + end_date)
return finish_day
def get_days_between_pb_start_first_joint_pycon():
"""Return the int number of days"""
t1 = (pycon_date - pybites_founded).days
return t1
fin_day = get_hundred_days_end_date()
between_day = get_days_between_pb_start_first_joint_pycon()
print("The finish date is ", fin_day)
print("The days in between the founded day and pycon day is",between_day, "days")
##Passed!!
from 100daysofcode-with-python-course.
Related Issues (20)
- parse error HOT 8
- urlretrieve function HOT 3
- Small detail on capturing all capitalized words HOT 1
- Possible misleading typo in 22-24 Decorators HOT 1
- video 'hello test world' HOT 10
- The subtitles for the deque and first concept videos (days 4-6) are swapped around. HOT 1
- Add section about setting things up HOT 2
- Missing README for days 04-06 HOT 3
- Days 58-60 Twitter HOT 3
- packtpub 'find_element_by_name' doesn't work HOT 1
- Pyperclip does not work correctly under Linux HOT 1
- Packt Publishing website updated HOT 4
- Python 100 days2 HOT 2
- Day 55-57 Example - write_post() HOT 3
- 100 Days of Code
- Day 55-57 results in Type Error for __init__ HOT 6
- 100days HOT 1
- Link in day 5 is broken HOT 1
- Link for the pytest fixtures article (day 12) is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 100daysofcode-with-python-course.