Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_num = float(input("Type your first number: "))
- second_num = float(input("Type your second number: " ))
- sum_nums = first_num + second_num
- subtract_nums = first_num - second_num
- multiply_nums = first_num * second_num
- divide_nums = first_num / second_num if second_num != 0 else None
- type_of_first = type(first_num)
- type_of_Second = type(second_num)
- print(f"Sum: {sum_nums}")
- print(f"Subtraction: {subtract_nums}")
- print(f"Multiplication: {multiply_nums}")
- print(f"Division: {divide_nums}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement