minus-squareignirtoq@feddit.onlinetoProgrammer Humor@programming.dev•𝚒𝚏...linkfedilinkEnglisharrow-up7·1 day agoPython, though the logic would be backwards: milk_gallons = 6 if eggs > 0 else 1 linkfedilink
Python, though the logic would be backwards:
milk_gallons = 6 if eggs > 0 else 1