Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def solve (a = input(), b = input()):
- out = ""
- if a == "int":
- out = int(b) * 2
- elif a == "real":
- out = f"{float(b) * 1.5:.2f}"
- elif a == "string":
- out = f"${b}$"
- return out
- print(solve())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement