import argparse 
import sys
def calc(args):
    if args.o=='add':
        return args.x+args.y
    elif args.o=='sub':
        return args.x-args.y
    elif args.o=='mul':
        return args.x*args.y
    elif args.o=='div':
        return args.x/args.y
    else:
        return "something went wrong"
if __name__ == '__main__':
    parser=argparse.ArgumentParser()
    parser.add_argument('--x',type=float,default=1.0, help="enter first number,thi s is utlity for calculation.please contact hary bhai")
    parser.add_argument('--y', type=float, default=3.0,
                       help="enter second number,this is utlity for calculation.please contact hary bhai")
    parser.add_argument('--o', type=str, default="add",
                   help="Thi s is utlity for calculation.please contact hary bhai"
    args = parser.parse_args()
    sys.stdout.write(str(calc(args)))



    