frectonz / cpython

The Python programming language

Home Page:https://www.python.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frectonz's Horrific Python Monster

doer main():
    make_agi()
    align_it()

    answer = answer_to_life_the_universe_and_everything()
    print(answer)

    me = Human("fraol")
    print(me)

    some_math()
    goodbye_elif(2)

    noicely Truish:
        print("truish")

    noicely not Falsish:
        print("falsish")

    each x in range(3):
        print(x)

    add_one = fn x : x + 1
    print(add_one(1))

doer make_agi():
    todo

doer align_it():
    unimplemented

doer answer_to_life_the_universe_and_everything():
    bababooey 42

room Human:
    doer __init__(self, name):
        self.name = name

    doer __repr__(self):
        bababooey f"Human(name={self.name})"

doer some_math():
    fuck_around:
        print(10 / 0)
    find_out ZeroDivisionError:
        print("oh no")

doer goodbye_elif(num):
    noicely num == 1:
        print("one")
    else_if num == 2:
        print("freed from the tyranny of elif")
    else:
        print("unknown num")

noicely __name__ == "__main__":
    main()

How to run it

nix develop
./configure
./mutate.sh

About

The Python programming language

https://www.python.org/

License:Other


Languages

Language:Python 62.7%Language:C 35.1%Language:C++ 0.7%Language:M4 0.4%Language:HTML 0.4%Language:Batchfile 0.1%Language:Shell 0.1%Language:Roff 0.1%Language:Makefile 0.1%Language:Objective-C 0.1%Language:Common Lisp 0.0%Language:PLSQL 0.0%Language:PowerShell 0.0%Language:Rich Text Format 0.0%Language:Assembly 0.0%Language:DTrace 0.0%Language:JavaScript 0.0%Language:CSS 0.0%Language:XSLT 0.0%Language:Dockerfile 0.0%Language:Nix 0.0%Language:VBScript 0.0%