• 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