Open satyasahoo210 opened 5 years ago
if a > 7: b = '>7' elif a == 7: b = '7' else: b = '<7'
b = '>7' if a > 7 else '7' if a == 7 else '<7'
Traditional way
hack
b = '>7' if a > 7 else '7' if a == 7 else '<7'