lundi 5 novembre 2018

How to print the string or value held as True [python]

Say, I have a function in python where

if age>20: 
   old=True
if height>90:
   tall=True

My question is if I want to call or print the values which are held as True. I want to write a line where the person wasn't selected for the job because he was too old. How would I do that?

Aucun commentaire:

Enregistrer un commentaire