# data[].attributes.body
2. if,else,else if,elif

# data[].attributes.headline
Q. Does an if statement check every condition?

# data[].attributes.subject
Q. Does an if statement check every condition?

# data[].attributes.body
- Yes, if statement checks every condition.

Aarnavi Sonone
9E

# data[].attributes.headline
Real Life examples for the use of CONDITIONAL STATEMENTS: Tanvi 9E

# data[].attributes.subject
Real Life examples for the use of CONDITIONAL STATEMENTS: Tanvi 9E

# data[].attributes.body
1. When you need your program to recognize which x-ray photograph is of the ulna bone in your arm
2. When you need to filter using your program which book/movie/tv series is suitable for your child under 7 years of age

# data[].attributes.body
1.  Yes it does
2. if, else, else if, elif

# data[].attributes.body
If statement.

If Else statement.

Elif statement.

Nested if statement.

Nested if else statement

# data[].attributes.headline
TYPES OF CONDITIONAL STATEMENTS-Jahanvi ved

# data[].attributes.subject
TYPES OF CONDITIONAL STATEMENTS-Jahanvi ved

# data[].attributes.body
If statement.

If-Else statement

elif

Nested If-else statement

# data[].attributes.body
1.yes every if statement will be tested each time through the loop regardless of its result.
2.

If statement.

If-Else statement.

Nested If-else statement.

If-Else If ladder.

# data[].attributes.body
The four types are-:

1. If statement

2. If else statement

3. Elif (Nested if statement)

4. If…Elif ladder

# data[].attributes.headline
REAL LIFE SCENARIOS EXAMPLES-By Niranjana 

# data[].attributes.subject
REAL LIFE SCENARIOS EXAMPLES-By Niranjana 

# data[].attributes.body
-To check score of a student:
if (score >= 90) grade = 'A'

-To check the rain system
If it rains tomorrow, we'll stay at home

-To check reward for doing homework
If I finish my homework I'll watch TV.

# data[].attributes.body
We have different types of conditional statements like:
1) if
2) if-else,
3) if else ladder
4) nested if

# data[].attributes.headline
4 Types of conditional statement - Inika

# data[].attributes.subject
4 Types of conditional statement - Inika

# data[].attributes.body
1) if
2) else
3) elif
4) else if

# data[].attributes.headline
What are the 4 types of conditional statements?

# data[].attributes.subject
What are the 4 types of conditional statements?

# data[].attributes.body
There are 4 different types of conditional statements:
(i) If statement
(ii) If else statement
(iii) If elif
(iv) Nested if

By: Manya

# data[].attributes.headline
REAL LIFE EXAMPLES OF CONDITIONAL STATEMENTS - RHEA

# data[].attributes.subject
REAL LIFE EXAMPLES OF CONDITIONAL STATEMENTS - RHEA

# data[].attributes.body
If you study hard enough, you'll pass the exam. Here, we have a first conditional sentence that describes a realistic situation in the future (You'll pass your exam if you study).

# data[].attributes.body
There are four main kinds of conditionals
1) if
2) if else
3) elif
4) else if

# data[].attributes.body
The 4 types of conditional statements are:
i. If Statement
ii. If Else Statement
iii. Nested If-else statement.
iv. If-Else If ladder.

# data[].attributes.headline
what are the 4 types of conditional statements? - Virti

# data[].attributes.subject
what are the 4 types of conditional statements? - Virti

# data[].attributes.body
1. if statement
2. if-else statement
3. elif statement
4. nested if statements

# data[].attributes.body
1)Yes, an if statement does check all the conditions.

2)The 4 types of conditional statements are:
1. If statement
2. If else statement
3. Elif statement
4.  If Else If ladder statement

# data[].attributes.headline
2. What are the 4 types of conditional statements?

# data[].attributes.subject
2. What are the 4 types of conditional statements?

# data[].attributes.body
4 Types:
1. if

2. if-else

3. elif

4. nested if/ nested if-else

# data[].attributes.headline
Q1) Does an if statement check every condition?(akhila)

# data[].attributes.subject
Q1) Does an if statement check every condition?(akhila)

# data[].attributes.body
Yes, if statements checks every condition.

# data[].attributes.body
The 4 Types of Conditional Statements are:
1) if
2) if else
3) elif
4) else if

# data[].attributes.body
Use the future real conditional to talk about possible situations in the future.
Example 1-  If it's raining, then not to play outside.
Example 2- To categorise books according to the respective genre.
Example 3- To check the marks and grade accordingly.

# data[].attributes.headline
Real Life Scenario Examples of Conditional Statements- Rida 9E

# data[].attributes.subject
Real Life Scenario Examples of Conditional Statements- Rida 9E

# data[].attributes.body
Example 1- If today is Wednesday, then yesterday was Tuesday
Example 2- If it is raining, we will not play.
Example 3-If your plane is late, I will wait in the car.

# data[].attributes.body
2 . if , else , elif , else if

# data[].attributes.body
bus=input("Enter bus presence (y/n): ")
clas=input("Enter class presence (y/n): ")
mail=input("Enter if any information given for absence(y/n): ")
if bus=="y" and clas=="n":
print("Student is present")
elif bus=="y" and clas=="n":
print("Student is on duty")
elif bus=="y" and clas=="n":
print("Bus machine is not working, contact ICT")
elif bus=="n" and clas=="n" and mail=="y":
print("Absent, Prior information about the student's absence")
else:
print("Absent, No information given")

# data[].attributes.body
bus=int(input("Enter presence or absence in bus: "))
c=int(input("Enter presence or absence in class: "))
mail=input("Is mail sent(yes or no)?: ")
if bus==1 and c==1:
print("Present")
elif bus==1 and c==0:
print("On duty")
elif bus==0 and c==1:
print("Bus machine not working, inform ICT")
elif mail=="yes" and bus==0 and c==0:
print("Prior information about the student's absence")
elif mail=="no" and bus==0 and c==0:
print("No information")

# data[].attributes.body
b=int(input("enter the bus atendence of the child: "))
c=int(input("enter the class attendence of the chid: "))
if b==1 and c==1:
print("the child is present")
elif b==1 and c==0:
print("the child is present but on duty")
elif b==0 and c==1:
print("child is present.Bus machine not workig , inform RFID department")
elif  b==0 and c==0 :
print("student is absent")

# data[].attributes.body
bus=int(input("Enter the attendance in bus: "))
clas=int(input("Enter the attendance in class: "))
if bus==1 and clas==1:
print("The student is present")
elif bus==1 and clas==0:
print("The student is present and on duty")
elif bus==0 and clas==1:
print("The student is present and bus machine is not working, Inform ICT")
else:
print("The student is absent")

# data[].attributes.body
bus=int(input("Are you present in the bus - "))
clas=int(input("Are you present in the class - "))
if bus==1 and clas==1:
print("Present")
elif bus==1 and clas==0:
print("Present - On Duty")
elif bus==0 and clas==1:
print("Present - Bus machine not working; Inform ICT")
else:
print("Absent")

# data[].attributes.body
b=int(input("enter the atendence of the child: "))
c=int(input("enter the attendence of the chid: "))
if b==1 and c==1:
print("the child is present")
elif b==1 and c==0:
print("the child is present but on duty")
elif b==0 and c==1:
print("child is present.Bus machine not workig , inform RFID department")
elif  b==0 and c==0 :
print("student is absent")

# data[].attributes.body
bus=int(input("Enter number: "))
clas=int(input("Enter number: "))
mail=input("enter any information given for absence: ")
if bus==1 and clas==1:
print("Student is present")
elif bus==1 and clas==0:
print("Student is on duty")
elif bus==0 and clas==1:
print("Bus machine not working , inform ICT")
else:
print("Absent")
if bus==1 and clas==0 and mail=="y":
print("Prior information about the student's absence")
else:
print("No information given")

# data[].attributes.body
bus=int(input("Enter the student's presence or absence in bus: "))
clas=int(input("Enter the student's presence or absence in class: "))
if bus==1 and clas==1:
print("Student is present")
elif bus==1 and clas==0:
print("Student is present, but is on duty")
elif bus==0 and clas==1:
print("Student is present, but bus machine is not working, inform ICT")
else:
print("Student is absent")

By: Manya

# data[].attributes.body
Bus=int(input("Enter the bus attendance 1 as present and 0 as absent:"))
Clas=int(input("Enter the class atendance 1 as present and 0 as absent:"))
if Bus==1 and Clas==1:
print("Student is present")
elif Bus==0 and Clas==1:
print("Student is present but bus machine is not working,inform ICT")
elif Bus==1 and Clas==0:
print("Student is present in school and On Duty")
elif Bus==0 and Clas==0:
print("Student is absent")

# data[].attributes.body
bus=int(input("Are you present in the bus? "))
class=int(input("Are you present in the class? "))
mail=str(input("Did you inform prior by sending a mail (Yes or No)?"))
if bus==1 and class==1:
print("The child is present")
elif bus==0 and class==1:
print("Present, but bus machine is not working, inform ICT")
elif bus==1 and class==0:
print("Present, but child is on duty")
elif bus==0 and class==0 and mail=="Yes":
print("Absent, mail received")
else:
print("Absent, mail not received")

# data[].attributes.body
bus=int(input("Enter the presence or absence of students in the bus "))
clas=int(input("Enter the presence or absence of students in class "))
if bus==1 and clas==1:
print("Present")
elif bus==1 and clas==0:
print("On Duty")
elif bus==0 and clas==1:
print("Bus machine not working, inform ICT")
else:
print("Absent")

# data[].attributes.body
bus=int(input("Enter the attendance in bus: "))
clas=int(input("Enter the attendance in class: "))
if bus==1 and clas==1:
print("They are present")
elif bus==1 and clas==0:
print("They are on duty")
elif bus==0 and clas==1:
print("Bus machine not working, inform ICT")
elif bus==0 and clas==1:
print("They are absent")

# data[].attributes.body
bus=int(input("Are you present in the bus? "))
class=int(input("Are you present in class? "))
if bus==1 and class==1:
print("Present")
elif bus==1 and class==0:
print("Present, on duty")
elif bus==0 and class==1:
print("Present, bus machine not working, inform ICT")
else:
print("Absent")

# data[].attributes.body
bus=int(input("enter 0 for absent and 1 for present"))
clas=int(input("enter 0 for absent and 1 for present"))
if bus==1 and clas==1:
print("student is present")
elif bus==0 and clas==1:
print("Student is present but RFID machine is not working , inform ICT")
elif bus==1 and clas==0:
print("Student on duty")
elif bus==0 and clas==0:
print("Student is absent")

# data[].attributes.body
bus=int(input("Enter the student's presence or absence in bus: "))
clas=int(input("Enter the student's presence or absence in class: "))
mail=int(input("Enter if mail has been receive by the class teacher:"))
if bus==1 and clas==1:
print("Student is present")
elif bus==1 and clas==0:
print("Student is present, but is on duty")
elif bus==0 and clas==1:
print("Student is present, but bus machine is not working, inform ICT")
elif bus==0 and clas==0 and mail==1:
print("Student is absent and mail has been sent to the class teacher")
else:
print("Student is absent but mail has not been sent to the class teacher")

By: Manya

# data[].attributes.body
b=int(input("Enter the attendance of the child in the bus: "))
c=int(input("Enter the attendance of the child in the class: "))
if(b==1 and c==1):
print("The child is present")
elif(b==1 and c==0):
print("The child is present but is ON DUTY.")
elif(b==0 and c==1):
print("Child is present .Bus machine is not working, inform ICT.")
else:
print("Child is absent")

a=int(input("\n""Enter the attendance of the child: "))
m=input("Enter if the mail has been sent: ")
if(b and c==0 and m=="yes"):
print("Mail received to the Class Teacher and student absence is recorded.")
elif(a==0 and m=="no"):
print("Student is absent. Message is sent to parents.")
elif(a==1):
print("Student is present")

# data[].attributes.body
bus=int(input("Enter 0 or 1:"))
clas=int(input("Enter 0 or 1:"))
if bus==1 and clas==1:
print("present")
elif bus==1 and clas==0:
print("On duty")
elif bus==0 and clas==1:
print("Bus machine not working,inform ICT")
else:
print("Absent")

# data[].attributes.headline
Coding 2- Attendance (modified): Tanvi 9E

# data[].attributes.subject
Coding 2- Attendance (modified): Tanvi 9E

# data[].attributes.body
bus=int(input("Enter the presence or absence of students in the bus "))
clas=int(input("Enter the presence or absence of students in class "))
mail=input("Is the mail sent by the parent? (enter 'Yes' or 'No')")
if bus==1 and clas==1:
print("Present")
elif bus==1 and clas==0:
print("On Duty")
elif bus==0 and clas==1:
print("Bus machine not working, inform ICT")
elif mail=="Yes":
print("Student is Absent. Prior information about the student's absence is sent!")
else:
print("Student is Absent. Mail not recieved")

# data[].attributes.body
Q1

clas=int(input("Is student present in class?"))
bus=int(input("Is student present in bus?"))
if clas==1 and bus==1:
print("Present")
elif clas==1 and bus==0:
print("Bus Machine not working")
elif clas==0 and bus==1:
print("On Duty")
else:
print("Absent")

# data[].attributes.body
bus=int(input("Are you present in the bus? "))
class=int(input("Are you present in class? "))
mail=str(input("Did you inform prior by sending a mail (Yes or No)? "))
if bus==1 and class==1:
print("Present")
elif bus==1 and class==0:
print("Present, on duty")
elif bus==0 and class==1:
print("Present, bus machine not working, inform ICT")
elif bus==0 and class==0 and mail=="Yes":
print("Student is absent and mail is received by CT")
else:
print("Student is absent and no mail is received by CT")

# data[].attributes.body
bus=int(input("Enter the attendance in bus: "))
clas=int(input("Enter the attendance in class: "))
mail=str(input("Enter the mail of absentees: "))
if bus==1 and clas==1:
print("The student is present")
elif bus==1 and clas==0:
print("The student is present and on duty")
elif bus==0 and clas==1:
print("The student is present and bus machine is not working, Inform ICT")
elif bus==0 and clas==0 and mail=="y":
print('The absentism of student has been given prior")
elif bus==0 and clas==0 and mail=="n":
print("The absentism of student has not been informed")
else:
print('Absentism hasnt been informed")