Sssss snake 🐍 language

Python is a modern-ish semi-compiled scripting language. I like to use python to prototype larger projects, but it is not something I try to use as a main part of a project.

Python also happens to have its main implementation written in {C}.

Hello World in Python

print("Hello World")

Recursive factorial in Python

def factorial(x: int) -> int:
    """Calculate the factorial of x"""
    # Ternary operation! 
    # 1 if x is 1, otherwise, x * x-1!
    return 1 if x == 1 else x * factorial(x - 1)

print("The factorial of 5 is", factorial(5))

incoming(3) | software | super16 | corgi