https://mysteryweevil.medium.com/mastering-pythons-ternary-operators-simplifying-conditional-expressions-f84c21c3b097