p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Conditionals I
Exercise: Pick the Larger Number
Exercise: Pick the Larger Number
Use a conditional expression to assign the larger of
a
and
b
to
bigger
. The first half of the line is provided.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output