Adding function to a varieble in python

42

def plus_one(number):
    return number + 1

add_one = plus_one
add_one(5)

Comments

Submit
0 Comments