diff --git a/python_sandbox_finished/conditionals.py b/python_sandbox_finished/conditionals.py index 7c07182..08f8e5e 100644 --- a/python_sandbox_finished/conditionals.py +++ b/python_sandbox_finished/conditionals.py @@ -64,4 +64,7 @@ # is not if x is not y: - print(x is not y) \ No newline at end of file + print(x is not y) + +# Ternary Operator +print(f'{x} is greater than {y}') if x>y else print(f'{y} is greater than {x}') \ No newline at end of file