Ad Code

Showing posts from 2024Show All
How to Conduct a Home Energy Audit and Save on Utilities
Write a NumPy program to find the dot product of two arrays of different dimensions.
Write a NumPy program to create a 2x2 array with random values and subtract the mean of each row from each element.
Write a NumPy program to create a 3x3x3 array with random values and find the sum
Write a Python function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument.
Write a program that takes numbers in a list and returns a new list with distinct elements from the first list.
Create class employees with function salary inherit by using Developer class and Tester class with suitable functions that can calculate the salary of employees. Use variables Ename, esalary, ecompany etc.
Use operator overloading to accept int and float values from the user and perform addition ,subtraction using inbuilt special functions __add__() etc.
Create any CSV file and perform read, write operations using Pandas
Write a Python program to demonstrate inheritance. The program should have a base class called Animal and a child class called Dog. The Animal class should have a method called eat(). The Dog class should inherit the eat() method from the Animal class and also have a method called bark().
Write a Python module that contains a function called remove_special_characters(). This function should take a string as input and return a new string with all special characters removed. Only lowercase and uppercase letters, numbers, and spaces should be allowed in the returned string
Write a Python program to find the circumference and area of a circle with a given radius , Squreroot of given number and find roots of quadratic equations using the Math module
Write a program to create a list 1. Count even and odd numbers 2. Print Reverse list 3. Find the most frequent value in list 4. filter the list . using conditional statements.
 Write a program to find prime factors of a given number
Write a program to find LCM of the given numbers using for/while
Create a Python program to track users' health data. Implement a HealthData class with attributes like name, age, and weight. Use a constructor to initialize these attributes when creating health data objects and calculate bmi(body mass index)(weight / height(meter) **2)
Write a program that prompts the user to enter their weight (in kilograms) and height (in meters). The program should calculate the Body Mass Index (BMI) using the formula: BMI = weight / (height * height). The program should then classify the BMI into one of the following categories: less than 18.5 - Underweight BMI between 18.5 and 24.9 - Normal weight BMI between 25 and 29.9 - Overweight BMI 30 or greater - Obesity
Write a program that prompts the user to input a number and prints its multiplication table
Write a program to print the numbers from 20 to 1 using a loop
Write a program that accepts seconds from the keyboard as integers. Your program should convert seconds into hours, minutes and seconds. Your output should like this :   Enter seconds: 13400  Hours: 3  Minutes: 43  Seconds: 20
Write a program that prompts the user to input a year and determine whether the year is a leap year or not. Leap Years are any year that can be evenly divided by 4. A year that is evenly divisible by 100 is a leap year only if it is also evenly divisible by 400. Example : 1992 Leap Year 2000 Leap Year 1900 NOT a Leap Year 1995 NOT a Leap Year
Load More That is All