Skip to content

Instantly share code, notes, and snippets.

@Zalasyu
Created April 22, 2021 22:10
Show Gist options
  • Save Zalasyu/d6f76bb4f9561a6c50c8257746c4cf79 to your computer and use it in GitHub Desktop.
Save Zalasyu/d6f76bb4f9561a6c50c8257746c4cf79 to your computer and use it in GitHub Desktop.

Revisions

  1. Zalasyu created this gist Apr 22, 2021.
    12 changes: 12 additions & 0 deletions calc.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # A primitive calcuator simulator

    def multiply(num_1, num_2):
    """Returns the product of two numbers"""
    return num_1 * num_2

    def add(num_1, num_2):
    """Returns the sum of two numbers"""
    return num_1 + num_2

    result = multiply(3, 5)
    print(f'Here is your result {result}')
    1 change: 1 addition & 0 deletions main.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    import calc