1 Matching Annotations
  1. Feb 2023
    1. if x < 10: print ("a") if x < 0: print ("b") else : print ("c")

      How does this code work? It has two "if" statements, and only one "else" statement. Where is the "else" statement for the "if" statement that's nested in the other one? Wouldn't it produce an error?