Skip to main content

Python program to make simple calculator

Python program to make simple calculator

In this example you will learn to create a simple calculator that can add,subtract,multiply or divide depending upon the input from the user.

Example: simple calculator by using functions.

please enter your choice :1.add 2.subtract 3.multiply 4.divide please enter your choice :8 Enter the first number:8 Enter the second number:8 invalid choice










https://ryanentertainments.blogspot.com/2020/11/python-how-to-merge-two-dictionaries.html

Comments

Popular posts from this blog

Introduction of python

What is Python? Python is a popular programming language. This language was created by Guido van Rossum  in 1991 and further developed by the Python Software Foundation. As you know it is work quickly and integrate systems more efficiently.   It is manly used for: 1.                   web development (server-side),  2.                   software development, 3.                   mathematics and data analytics 4.                   system scripting etc. What can Python do? It can be used on a server to create web applications. It can also used alongside software to create workflows and connect to dat...

Django in Python

What is Django? Django is a free and open source web application framework written in Python that encourages rapid development and clean pragmatic design. As you know  A framework is nothing more than a collection of modules that  make development easier. They are grouped together, and allow you to create applications or websites from an existing source, instead of from scratch. Some well known sites that use Django include PBS, Instagram, Disqus, Washington Times, Bitbucket and Mozilla. Django offers a big collection of modules which you can use in your own projects. Primarily, frameworks exist to save developers a lot of wasted time and headaches and Django is no different.

Cloud Computing

 CLOUD COMPUTING The cloud is a generic term used for Internet. Cloud computing is Internet – based  Computing , Whereby Shared Resources , Software, and Information are provided  to Computer and Other devices on demand, Like the electricity grid….. Types Of Clouds There are different types of Clouds that you can subscribe to depending on your choice (Needs)….. There are four deployment models of Clouds are: 1. Private Clouds 2. Public Clouds 3. Community Clouds 4. Hybrid Clouds Private Clouds   These are the clouds for exclusive use by a single Organization and Typically Controlled, managed and hosted in private data  But a private Clouds remains for the exclusive use of one organization. For example:- An example of a private cloud deployment is where you maintain your own servers and infrastructure that hosts your applications and data. ... A Hybrid model is where you also have some applications or servers based on business need running in a public cloud infra...