Skip to content

pgkm93/Function_And_Modules_in_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tutedude Assignment

Function & Modules in paython

Task 1

Calculate factorial using a function

1.In this task we import the math module it's offer to perform the mathematical operation from basic arithmetic to advanced function. 2.Here i took the user input and using f"" string and math.factorial() function we printed result.

Task 2

1.This task also based the math based function.
2.here we used try and exception function, this both blocks used for handling exception,
3.In this task i assigned the digit it's maybe float or int apart from that both variables , that will jump from try function to exception function then that will print the value error result.
4.here i used math.sqrt() for square root,math.log() for Natural logarithm and math.sin() for sine of the number respectively.

Thank you

About

Function_And_Modules_in_python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages