You should use the if __name__ == "__main__":
You should use the if __name__ == "__main__":
module in your answer.
As a last point the return
statement could be written using a terniary conditional operator terniary conditional operator
You should use the if __name__ == "__main__":
module in your answer.
As a last point the return
statement could be written using a terniary conditional operator
You should use the if __name__ == "__main__":
module in your answer.
As a last point the return
statement could be written using a terniary conditional operator
Using some cryptic pythonic voodoo cryptic pythonic voodoo. However as I said in the introductory I like your code, because it is easy to understand. Almost always it is better to have clear, readable code than cryptic code which is a few lines shorter. This of course disregards any speed improvements and such
Using some cryptic pythonic voodoo. However as I said in the introductory I like your code, because it is easy to understand. Almost always it is better to have clear, readable code than cryptic code which is a few lines shorter. This of course disregards any speed improvements and such
Using some cryptic pythonic voodoo. However as I said in the introductory I like your code, because it is easy to understand. Almost always it is better to have clear, readable code than cryptic code which is a few lines shorter. This of course disregards any speed improvements and such