summaryrefslogtreecommitdiff
path: root/doc/data/messages/c/consider-using-max-builtin/bad.py
blob: 3e66cee96ed69341701f25829b900483f3eccae7 (plain)
1
2
3
4
5
6
7
def get_max(value1, value2):
    if value1 < value2:  # [consider-using-max-builtin]
        value1 = value2
    return value1


print(get_max(1, 2))