User Input & Type Casting
Take the name from the user and greet him in this form - Hello, username
Take input of the length and breadth of a rectangle from the user and print the area of it.
Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. The Table below shows how healthy you are with respect to your BMI.

The Formula That we use For BMI is :
Take Weight and height from the user and Calculate BMI.​
4. Take Principle, Rate, and Time From User and Calculate Simple Interest.
Formula For Simple Interest is:
5. Your task is to take name and age and location from user and print the following message :
Hello Everyone , I am xyz and i am xyz years old and i live in xyz.
6. Suppose there are many N numbers of people in the Army. We need to distribute them in G groups. Take the number of people from users and the Number of Groups and tell how many are left without Group.
7.Take Temperature in Fahrenheit and convert it into Celsius.
Formula:
C = 5/9 * ( F - 32 )
Take two variables from user value and power and print the solution value raised to power. Such as value = 3 and power = 2 then solution is 9
Tom had y amount in his bank and jeff withdrew x amount where x is always less than y. Print the remaining balance in Tom's account. Take x and y from the user.
Take the base and height of a triangle from the user and calculate the area of the triangle. area=(base * height)*1/2

Take 5 numbers from the user and calculate average of those numbers.
(average=sum of data/number of data)
Take the sides of a triangle and check whether it follows Pythagoras' theorem. sq. of base + sq. of height=sq. of hypotenuse

Take the length and breadth of a rectangle and find the perimeter of the rectangle perimeter= 2 * (length + breadth)
Take the side of a cube in cm and calculate the volume of the cube. volume= side * side * side

Take the length, breadth, and height of a cuboid in cm and calculate the volume of the cuboid. volume= length * breadth * height

Take the radius and height of a cylinder and calculate the total surface area. total_surface_area= 2*3.14* radius *height + 2* 3.14 * sq. of radius

Take the radius and height of a cone and calculate the volume of it. volume= (3.14 * sq of radius * height) * 1/3

Take the radius and length of a cone and calculate the total surface area of it. total_surface_area= 3.14*radius*(radius + length)
The output of the following
A = 100 B= 30 print(A and B)
a. True b. False c. 100 d. 30
print(20 or 30)
a. False b. True c. 20 d. 30
Last updated