Python's version of a ternary operator is

<A> if <condition> else <B>

I hate this

@wallhackio You also program in Python? Besides Java & JavaScript? :psyduck:

Follow

@vaporeon_ it's a scripting language that looks like Java

what JavaScript sounds like it's supposed to be, is what Groovy actually is

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.