Answers for "how to find the largest number in a string python"

1

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
Posted by: Guest on February-08-2021
0

how to write program in python to get the largest nuber

def max_num_in_list( list ):
    max = list[ 0 ]
    for a in list:
        if a > max:
            max = a
    return max
print(max_num_in_list([1, 2, -8, 0]))
Posted by: Guest on January-27-2021

Code answers related to "how to find the largest number in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language