• searching documentation

 

Hello, in some task i found interesting solution: amorpm = ['a.m.', 'p.m.'][hours >= 12]
how does it work? give me, please, the link to the documentation about solution like it