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.
In this case ("11 y.o") you can use a "split"-method 'int(s.split()[0])'
But task is very specific (from 0 to 9).
same hahahaha
How's that going to return [0] if arr is blank though?
Yes mine failed with price = 54 discount = 5 holiday_cost = 8856
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
why I always specify "0" in range()?
range requires two arguments a start and an end, which basically resembles a "range".
This will FAIL in some cases, i did it like this, but division in python using // is not always precise, use with care
PD: I was getting an error but attempt it until a random case didn´t break my code :-)
Explain what gives "" pls
I really dont understand((((
My maths lecturer would be appauled by your comment @Encription0001 :D This code can be refactored to any value of water when you multiply. You should never use proper fractions, e.g. 1/2 (/2) 1/4 (/4) as cases such as .75 would mean 3/4 and you cant use the divide operator without multiplying the numerator thats > 1. e.g. ((1/4)*3) and using integer conversion will always round down a floating point number.
Because the reply is coming as a string, and the condition is that first character is always a number. Thus you want only the first character exported from the given string.
could you explain why you use [0]?
nice! I solved it differently and it's interesting how you solve it
Loading more items...