Functions- Basic Assignments
Last updated
Last updated
Create a non-return type function that takes the user's name and display the message "Hello user! Welcome to Python Functions"
Create a non-return type function that takes the details of user like name,age, city, company, and profile and display the message- "Hello Python, I am name. I am age years old. I am a profile in company"
Create a return type function that takes the length and breadth of a rectangle and calculate area of the rectangle.
Create a return type function that takes weight and height of a user and return the bmi of the user. Depending upon the bmi show the category that the custimer belongs to.
Create a return type function that takes principle, rate, and time from the user and then return simple interest after calculation.Afterwards Calculate amount that the user has to repay.
Create a return function that takes the radius and height of a cylinder and return the total surface area. TSA = 2πr*(r + h).
Create a function that takes the radius and height of a cone and return the volume. V=1/3hπr²
Create a function that returns the quotient and remainder after dividing two numbers.
Create a return type function that takes marks of 5 subjects from a student and calculates the percentage of the student.
Create a function called create_bill that takes product name,price, and qty and return the bill.