Create largest_number.py

This commit is contained in:
Joe James
2020-02-25 14:43:59 -06:00
committed by GitHub
parent ac6233c5b1
commit cf7c54365b

11
python/largest_number.py Normal file
View File

@@ -0,0 +1,11 @@
# 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)