User Input Assignments
Last updated
Last updated
Take input of the length and breadth of a rectangle from the user and print the area of it.
2. 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.
3. Now that you have Calculated BMI , Find out whether user is Underweight or Normal Weight or Falls in what Category.
4. Take Principle, Rate, and Interest From User and Calculate Simple Interest.
Formulae 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 fahreinheit and convert it into celcius.
Write a Python program that asks the user to enter two numbers, and then prints out the sum of the two numbers.
Write a Python program that asks the user to enter a string, and then prints out the length of the string.
Write a Python program that asks the user to enter a sentence, and then prints out the number of words in the sentence.
Write a Python program that asks the user to enter a number, and then prints out whether the number is even or odd.
Write a Python program that asks the user to enter a temperature in Celsius, and then converts the temperature to Fahrenheit and prints out the result. (Hint: the formula for converting Celsius to Fahrenheit is F = (C * 9/5) + 32)
Write a Python program that asks the user to enter two numbers, and then prints out the remainder of the division of the first number by the second number.
Write a Python program that asks the user to enter three numbers, and then calculates and prints out the average of the three numbers.
Write a Python program that asks the user to enter their age, and then prints out a message that says "You have lived [number of days] days so far!" (assuming that each year has 365 days)
Write a Python program that asks the user to enter a decimal number, and then rounds the number to the nearest integer and prints out the result.
Write a Python program that asks the user to enter a temperature in Celsius, and then converts the temperature to Kelvin and prints out the result. (Hint: the formula for converting Celsius to Kelvin is K = C + 273.15)
Write a Python program that asks the user to enter a length in feet, and then converts the length to meters and prints out the result. (Hint: the formula for converting feet to meters is m = ft / 3.2808)
Write a Python program that asks the user to enter a number, and then checks whether the number is a perfect square or not. (Hint: a perfect square is a number that is equal to the square of an integer)
Write a Python program that asks the user to enter a distance in kilometers, and then converts the distance to miles and prints out the result. (Hint: the formula for converting kilometers to miles is mi = km / 1.609)
Write a Python program that asks the user to enter a number, and then checks whether the number is positive, negative, or zero.
Write a Python program that asks the user to enter a weight in kilograms, and then converts the weight to pounds and prints out the result. (Hint: the formula for converting kilograms to pounds is lb = kg * 2.2046)