



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















HORT 59000 Lecture 11 Instructor: Kranthi Varala
Combines two or more statements that return a Boolean value. A and B True if both A and B are true A or B True if either A or B is true not A reverse the Boolean given by A xor(A,B) True if only one of A or B is True A B A and B A or B Not A xor(A,B) TRUE TRUE TRUE TRUE FALSE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE
if test1: statement 1 elif test2: statement 2 else: statement 3
Accepts input from user, as a string