Technical Publications

2.Subtract. 3.Multiply. 4.Divide. 5.x^y. 6.x! 7.Exit. Enter your choice. 7 Exiting >>> Experiment 7 : To accept the number and compute a) square root of a number b) Square of number c) Cube of a number d) Check for prime e) factorial of number f) prime factors. Solution : import math. def sqrt_num(x): return math.sqrt(x) def sq_num(x): return x ... ................
................