Advertisement
BbJLeB

test?

Jun 13th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. type = input()
  2. if type == "int":
  3.     a = int(input())
  4.     b = int(input())
  5.     print(max(a, b))
  6. elif type == "char":
  7.     a = input()
  8.     b = input()
  9.     print(max(a, b))
  10. elif type == "string":
  11.     a = input()
  12.     b = input()
  13.     if a > b:
  14.         print(a)
  15.     else:
  16.         print(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement