---
title: "Discussion on \"Simple calculator\" | Hashnode"
description: "Discussion on \"Simple calculator\". #write a program to make a simple calculator.\nimport math\nprint(\"\\t____calculator____\")\ndef sum(a,b):\n    a+=b\n    return a\ndef sub(a,b):\n    if a>b:\n         a-=b\n         return a\n    else:\n        b-=a\n        return b \ndef mul(a,b):\n    a*=b\n    ..."
url: "https://hashnode.com/posts/simple-calculator/6568950c5f62d4a461e504b1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Simple calculator](https://aaroogaurav.hashnode.dev/simple-calculator?utm_source=hashnode&utm_medium=feed)

#write a program to make a simple calculator. import math print("\\t\_\_\_\_calculator\_\_\_\_") def sum(a,b): a+=b return a def sub(a,b): if a>b: a-=b return a else: b-=a return b def mul(a,b): a\*=b ...

Nov 30, 2023 · 1 min read · aaroogaurav.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python-projects](https://hashnode.com/tag/python-projects)
-   [#python-libraries](https://hashnode.com/tag/python-libraries)

## Written by

[Gaurav kumar](https://hashnode.com/@Aaroogaurav)

@Aaroogaurav · koderma, india

  
[View profile](https://hashnode.com/@Aaroogaurav)

developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
