# Type the range for each branch 
# Type ranges as 25-29, or type 30+ for all numbers 30 and larger 

if num_sales < 10: 
elif num_sales < 20: # 2nd Branch range: 10-19 
elif num_sales < 30: # 3rd Branch range: 20-29 
    else:            # 4th Branch range: 30+ 
    # if execution reaches here, the previous expression of num_sales < 30 must have been false num_sales is 30 or greater. No upper limit is specified 


#What is the range for the last branch below? 
if num_items < 0: 
elif num_items > 100: 
else:  #3rd Branch Range 0-100 

#The first expression of num_items < 0 must have been false, num_items is 0 or greater. The second expression of numitems > 100 must have been false, 
# meaning num_items is 100 or less. To reach the last else branch, num_items must be 0 -100. 

# Second branch: user_num is positive (non-zero)

if user_num < 0: 
elif user_num > 0: #second branch 
else #user_num is 0 

#Which branch will execute? Valid answers: 1,2,3 or none 

user_num = 555; 

if user_num < 0: #Branch one 
elif user_num > 666: #Branch two 
elif user_num < 100: #Branch three 

#Anwser: None 
#  None of three branches have a true expression for user_num = 555. The last branch is not just "else" but has an expression
# Check each expression, thats how you define if its a true expression. 

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: