Modules & Libraries: import, user-defined modules, pip, installing packages, math, random, datetime, File operations + custom functions + error handling in mini assignments
- Write a Python program to import the `math` module and calculate square root, power, and factorial ?
- Write a Python program to generate a random OTP using the `random` module ?
- Write a Python program to display the current date and time using the `datetime` module ?
- Write a Python program to calculate the area of a circle using the `math` module ?
- Write a Python program to generate a random password using the `random` module ?
- Write a Python program to display today’s date in a formatted way using the `datetime` module ?
- Write a Python program to simulate a dice rolling game using the `random` module ?
- Write a Python program to calculate trigonometric values using the `math` module ?
- Write a Python program to calculate age using the `datetime` module ?
- Write a Python program to choose a random winner from a list of students ?
- Write a Python program to demonstrate importing a user-defined module ?
- Write a Python program to create a user-defined module for addition and subtraction ?
- Write a Python program to check whether a package is installed using exception handling ?
- Write a Python program to display the pip installation command for a package ?
- Write a Python program to write random numbers into a file using the `random` module ?
- Write a Python program to read numbers from a file and calculate their sum using custom functions ?
- Write a Python program to create a math report using the `math` module and file handling ?
- Write a Python program to create a date-based attendance file using the `datetime` module ?
- Write a Python program to handle invalid input while calculating square root using the `math` module ?
- Write a Python program to develop a mini assignment that stores student marks in a file, reads them, calculates average marks using custom functions, and handles file errors ?