Practical No 4: Write simple Python program to demonstrate use of conditional statement :if statement ,"if else statement" , Nested if statement ((MSBTE Pratical Question))

1. List operations used in conditional statement 
  • Comparision Operator
  • Logical Operator
  • Identity Operator
  • Membership Operator
2. Differentitate between if-else and nested-if statement
Ans: if-else : Here their only single pair of if - else statement nested if statement
        Here the statement is nesteed means their is a group of if statment inside another if statement

Comments

Popular posts from this blog

State IDLE in Python.

State use of pep and pip

Program to create user-defined exception that will check whether the password is correct or not? ((MSBTE Pratical Question))