Files
jps/python/largest_number.py

12 lines
150 B
Python
Raw Normal View History

2020-02-25 14:43:59 -06:00
# find the largest of 3 numbers
x, y, z = 6, 3, 8
largest = x
if y > x and y > z:
largest = y
elif z > x and z > y:
largest = z
print(largest)