Paste-bin.xyz
Archive
Sign In
Login
Register
Username
Current Password
Keep me signed in.
Username
Full Name
Email
New Password
PYTHON
32
cherries weight
Guest on 27th August 2023 06:09:08 AM
def
cherries
(
weight
)
:
if
weight
>=
10.4
:
return
'9 Row'
elif
weight
>=
8.6
or
weight
<
10.4
:
return
'10 Row'
elif
weight
>=
7.1
or
weight
<
8.6
:
return
'11 Row'
else
:
return
'12 Row'
print
(
cherries
(
5
)
)
Raw Paste
def cherries(weight): if weight >= 10.4: return '9 Row' elif weight >= 8.6 or weight < 10.4: return '10 Row' elif weight >= 7.1 or weight < 8.6: return '11 Row' else: return '12 Row' print(cherries(5))
Login
or
Register
to edit or fork this paste. It's free.