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 solution works well for small inputs, but it checks every number up to n, making it inefficient for large values. A more optimized approach could iterate directly over multiples of 3 and 5 to reduce unnecessary checks.
thanks.
i
tends to be for integers by convention. This exercise deals with lists, so a different letter likex
would be more appropriate.i think it's very clear and python style solution