Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- value_type = input()
- first_value = input()
- second_value = input()
- def compare_int(f, s):
- if f > s:
- print(f)
- else:
- print(s)
- def compare_chars(f, s):
- if ord(f) > ord(s):
- print(f)
- else:
- print(s)
- def compare_string(f, s):
- if f > s:
- print(f)
- else:
- print(s)
- if value_type == "int":
- compare_int(int(first_value), int(second_value))
- elif value_type == "char":
- compare_chars(first_value, second_value)
- elif value_type == "string":
- compare_string(first_value, second_value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement