Posts

Latest Posts

Write a program to read n numbers from a user and print : ● Number of positive numbers. ● Number of negative numbers. ● Number of zeros. ● Number of odd numbers. ● Number of even numbers. ● Average of all numbers. (Using match case)

Write a program to repeatedly prompt the user to enter the capital of a state. Upon receiving the user’s input, the program reports whether the answer is correct. Assume the states and their capitals are stored in dictionaries as key-value pairs

Write a program that is given a dictionary containing the average daily temperature for each day of the week, and prints all the days on which the average temperature was between 40 and 50 degrees.

Write a program to perform below operations on dictionary: ● Create a dictionary. ● Print dictionary items. ● Add/remove key-value pair in/from a dictionary. ● Check whether a key exists in a dictionary. ● Iterate through a dictionary. ● Concatenate multiple dictionaries.

Write a program to perform below operations on set: ● Create two different sets with the data. ● Print set items. ● Add/remove items in/from a set. ● Perform operations on sets: union, intersection, difference, symmetric difference, check subset of another set.

Write a program to perform below operations on tuple: ● Create a tuple with different data types. ● Print tuple items. ● Convert tuple into a list. ● Remove data items from a list. ● Convert list into a tuple. ● Print tuple items.

Write a program to eliminate duplicate values in the list.

Write a program that counts the occurrences of each digit in a string. The program counts how many times a digit appears in the string. For example, if the input is "12203AB3", then the output should output 0 (1 time), 1 (1 time), 2 (2 times), 3 (2 times).

Write a program to read n numbers from a user and print : ● Number of positive numbers. ● Number of negative numbers. ● Number of zeros. ● Number of odd numbers. ● Number of even numbers. ● Average of all numbers.

Write a program to perform the below operations on the list : ● Create a list. ● Add/Remove an item to/from a list. ● Get the number of elements in the list. ● Access elements of the list using the index. ● Sort the list. ● Reverse the list.

Simple Python program to read 'n' numbers from users and calculate the average of those numbers.

Make Python Program To Calculate of Body Mass Index.

write a python program for Grading system .

Many companies pay time-and-a-half for any houred worked above 40 hours in a given week . write a python program to input the number of hours worked and hourly rate. calculate the total wages of the week.

write a python program to find given year is leap year or not.

Write a python program to determine the length of ladder required to reach a given height when leaned against the house . the height and the angle of the ladder are given as inputs (use math library)

write a python program that computes the real roots of a given quadratic equation (use math library)

Write a python program to calculate area and the volume of sphere .

Write a python program to find a maximum of given three numbers (use ternary operator)

Write a python program to get change values in quater, dime, nickels and pennies. and calculate the values of change in dollars. consider Quater =0.25$ , Dime = 0.10$ , nickels = 0.05$, penny = 0.01$

Write a python program to Calculate compound interest.

Write Code to Calculate simple interest in python.

Write a Python Code to Calculate simple interest and compound interest.

Write a python program to compute the slope of a line between two points (x1,y1) and (x2,y2).

Write a python program to convert temperature form celsius to fahrenheit .

Write a python program to read your name, contact number, email and birthdate and print those details on screen.