Tag: control flow python

  • How do you write an if statement in Python?

    Whenever we think about control flow, perhaps the most well known statement type is the if statement. Why? We’ll see. If you come from other languages, you may have used “else if” with the “if” statement. Right?  However, python is an exception in this case. Python uses “elif” in place of “else if”. Usually, the…