If Else
If Else
Write a program to display the division of a student as per the user inputted marks
using if else and logical operator.
2. Write a program to sort the user inputted three numbers in ascending order.
3. Write a python program to input side of a triangle and check whether triangle is
valid or not using if else. How to check whether a triangle can be formed or not if
sides of triangle are given using if else in python programming. Logic to check
triangle validity if sides are given in python program.
4. Program for analysis of people of certain age groups who are eligible for getting a
suitable job if their condition and norms get satisfied using nested if statement.
6. Write a python program to input cost price and selling price of a product and
check profit or loss. Also calculate total profit or loss using if else. How to
calculate profit or loss on any product using if else in python programming.
Program to calculate profit and loss of any product in python.
9. Write a python program to input electricity unit charge and calculate the total
electricity bill according to the given condition:
For first 50 units Rs. 0.50/unit
Equilateral triangle: An equilateral triangle is a triangle in which all three sides are
equal. In the familiar Euclidean geometry, equilateral triangles are also equiangular;
that is, all three internal angles are also congruent to each other and are each 60°.
Isosceles triangle: An isosceles triangle is a triangle that has two sides of equal
length.
Scalene triangle: A scalene triangle is a triangle that has three unequal sides, such as
those illustrated above.