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.
when you use if nums
python check if the list at least have one element and return true
if list is empty python return false so automatically the if block is not excuted
same solution
Very concise and efficient
smart
oh right thank you
In python, empty lists and strings are falsy.
ok thanks for the explanantion
This comment is hidden because it contains spoiler information about the solution
Is it any good to name your arguments/variables
str
orint
, which are normally predefined functions?This comment is hidden because it contains spoiler information about the solution
To use in the
range
function, it will obviously have to beint(n ** .5) + 1
Hello. https://docs.python.org/2/library/functions.html#all
Hello What is all() function in python??
Thanks for this kata! Unfortunately Codewars already has a number of palindrome kata available. It would be better to submit a Python translation to one (or more) of those.
test cases should include cases with punctuations in string
Loading more items...