``` def ici(): print(""" [1] Addition [2] Soustraction [3] Multiplication [4] Division """) ici() inp = int(input('enter your selection: ')) class calc: def add(): a = int(input('enter the first number: ')) b = int(input('enter the second number: ')) c = (a + b) print(f'the result is: {c},') return ici def sous(): a = int(input('enter the first number: ')) b = int(input('enter the second number: ')) c = (a - b) print(f'the result is: {c},') return ici def mult(): a = int(input('enter the first number: ')) b = int(input('enter the second number: ')) c = (a * b) print(f'the result is: {c},') return ici def divi(): a = int(input('enter the first number: ')) b = int(input('enter the second number: ')) c = (a % b) print(f'the result is: {c},') return ici if inp == 1: add() elif inp == 2: sous() elif inp == 3: mult() elif inp == 4: divi() calc() ```
how can i optimise this code ?