filmov
tv
write a python program for importing sqrt() and factorial from the module math

Показать описание
Code - please like share and subscribe to channel
===============================================
from math import sqrt, factorial
n = int(input("Enter a Number : "))
print(f"Sqrt of {n} is {sqrt(n) : .2f}")
print(f"Factorial of {n} is {factorial(n)}")
===============================================
from math import sqrt, factorial
n = int(input("Enter a Number : "))
print(f"Sqrt of {n} is {sqrt(n) : .2f}")
print(f"Factorial of {n} is {factorial(n)}")