Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
It is not an issue of math.ceil. It is related to how division is implemented. Python 2 and Python 3 are different in this aspect. Consider the following example in Python 2:
same for me as well
This comment is hidden because it contains spoiler information about the solution
Yep, math.ceil() does not seem to work properly. You can use int(a+b) + (a%b > 0) instead.
There is no difference between single and double quotes in Python
You code would work fine if you added the missing bracket, removed a pair of quote marks, and returned the answer.
I believe the problem is im returning the url as 'url' instead of "url". So the problem is single quotation vs double quotation. Any ideas how to fix this?
EDIT:
It looks like from the python documentation that the re module automatically returns strings in that form... should the kata be changed to accept answers in single quotations?
https://docs.python.org/3/library/re.html
Python test case #1 is failing:
"page_count is returning incorrect value.: 2.0 should equal 3"
When I check the page count in a jupyter notebook is returns 3.
Anyone else getting this?
No you won't unfortunately.
You're missing a bracket at the end. Maybe you copy-pasted it incorrectly.
Also, you should return the answer, not print it to the console.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution