1. while True:
    2. print("Do you want as(add and subtract) or md(multiply and divide)?")
    3. answerofask1 = input()
    4. if answerofask1 == 'as':
    5. print("Do you want add or subtract?")
    6. answerofask2 = input()
    7. if answerofask2 == 'add':
    8. print("Please write your addend")
    9. addend1 = float(input())
    10. print("Please write your addend")
    11. addend2 = float(input())
    12. answerofadd = addend1 + addend2
    13. print("The answer is :", addend1, "+", addend2, "= ", answerofadd)
    14. elif answerofask2 == 'subtract':
    15. print("please write your minuend")
    16. minuend = float(input())
    17. print("Please write your reduction")
    18. reduction = float(input())
    19. answerofsubtract = minuend - reduction
    20. print("The answer is :", minuend, "-", reduction, "=", answerofsubtract)