Obtenez l'opérateur en entrée dans Python
num = int(input("Enter a number greater than 1: "))
oper = raw_input("Choose a math operation (+, -, *): ")
for i in range(1, 11):
if oper == '+':
print(num, oper, i, '=', num + i)
elif oper == '-':
print(num, oper, i, '=', num - i)
elif oper == '*':
print(num, oper, i, '=', num * i)
else:
print('operator is not supported')
ooomba ooomba