title: In python, can a conditional statement be called both nested and chained?
body: <p>I am taking online classes on Udemy and the course suggests that a conditional statement cannot be both chained nested at the same time.</p>
  <p>I looked it up on google and found this:</p>
  <p><em>Chained conditional is a conditional that contains a series of alternative branches using if, elif and else statements that are all indented at the same depth. <strong>There is no nesting in chained conditional.</strong> On the other hand, nested conditional is where one conditional is nested within another conditional.</em></p>
  <p><a href="https://www.assignmentexpert.com/homework-answers/programming-and-computer-science/python/question-184682" rel="nofollow noreferrer">https://www.assignmentexpert.com/homework-answers/programming-and-computer-science/python/question-184682</a>*</p>
  <p>Now here is an example which confuses me.</p>
  <pre><code>answer = None
  x = randn()
  if x &gt;= 1:
    answer = &quot;x is greater than 1&quot;
  elif x &gt;= -1:
    answer = &quot;x is between -1 and 1&quot;
  else:
    if x &gt;=-2:
      answer = &quot;x is between -2 and -1&quot;
    else:
      answer = &quot;x is less than -2&quot;
  print(x)
  print(answer)
  </code></pre>
  <p>There are nested conditions within a chained conditional. So shouldn't this be called both chained and nested?</p>