• RidderSport@feddit.org
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    2 days ago

    Java is the only code I have any (tiny) knowledge of, which is why the line reminded me of that.

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 days ago

      Ah, but in Java, unless they’ve changed things lately, you have the curly brace syntax of most C-like languages

      if ("strawberry" in token_list) {
          return something;
      }
      

      Python is one of the very few languages where you use colons and whitespace to denote blocks of code