Hello @ Anee,
Code:
num1 = int(input("Enter First Number: "))
num2 = int(input("Enter Second Number: "))
print("Enter which operation would you like to perform?")
ch = input("Enter any of these char for specific operation +,-,*,/: ")
result = 0
if ch == '+':
result = num1 + num2
if result == 2:
//run your for loop for result
elif ch == '-':
result = num1 - num2
if result == 2:
//run your for loop for result
elif ch == '*':
result = num1 * num2
if result == 2:
//run your for loop for result
elif ch == '/':
result = num1 / num2
if result == 2:
//run your for loop for result
else:
print("Input character is not recognized!")
print(num1, ch , num2, ":", result)