# Python program for simple calculator
def add(num1, num2):
    return num1 + num2

def subtract(num1, num2):
    return num1 - num2


print("Please select (1) for add and (2) for Sub")

# Take input from the user
select = input("Select operations form 1, 2 :")
number_1 = int(input("Enter first number: "))
number_2 = int(input("Enter second number: "))

if select == '1':
    print(add(number_1, number_2))

elif select == '2':
    print(subtract(number_1, number_2))

else:
    print("Invalid input")
62e525c5180bf70aaec9e73dc8cf6c37d2d3375d
<mask token>


def subtract(num1, num2):
    return num1 - num2


<mask token>

def add(num1, num2):
    return num1 + num2


def subtract(num1, num2):
    return num1 - num2


<mask token>

def add(num1, num2):
    return num1 + num2


def subtract(num1, num2):
    return num1 - num2


print('Please select (1) for add and (2) for Sub')
<mask token>
if select == '1':
    print(add(number_1, number_2))
elif select == '2':
    print(subtract(number_1, number_2))
else:
    print('Invalid input')

def add(num1, num2):
    return num1 + num2


def subtract(num1, num2):
    return num1 - num2


print('Please select (1) for add and (2) for Sub')
select = input('Select operations form 1, 2 :')
number_1 = int(input('Enter first number: '))
number_2 = int(input('Enter second number: '))
if select == '1':
    print(add(number_1, number_2))
elif select == '2':
    print(subtract(number_1, number_2))
else:
    print('Invalid input')

# Python program for simple calculator
def add(num1, num2):
    return num1 + num2

def subtract(num1, num2):
    return num1 - num2


print("Please select (1) for add and (2) for Sub")

# Take input from the user
select = input("Select operations form 1, 2 :")
number_1 = int(input("Enter first number: "))
number_2 = int(input("Enter second number: "))

if select == '1':
    print(add(number_1, number_2))

elif select == '2':
    print(subtract(number_1, number_2))

else:
    print("Invalid input")