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
Post a Comment