Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def compare_a(a, b):
- if int(a) > int(b):
- return a
- else:
- return b
- def compare_b(a, b):
- if a > b:
- return a
- else:
- return b
- def compare_all(type_p, a, b):
- if type_p == 'int':
- return compare_a(a, b)
- else:
- return compare_b(a, b)
- if __name__ == '__main__':
- type_arg = input()
- x = input()
- y = input()
- result = compare_all(type_arg, x, y)
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement