python find largest variable code example
Example 1: python how to check which int var is the greatest
if A > B and C and D:
print("A wins")
if B > A and C and D:
print("B wins")
Example 2: python find largest variable
x = 1
y = 2
z = 3
var = {x:"x",y:"y",z:"z"}
max(var)
var.get(max(var))
var.get(min(var))
----OUTPUT----
3
z
x