http://www.pythonreader.com/2023/12/python-ternary-multiple-times-chris.html