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

Python - How To Merge Two Dictionaries

  Python -  How to merge two dictionaries As we know If you are working as Python developer, data analytics or data scientists for any organisation then it is very important for you to know how to merge two dictionaries. There are various ways in which Dictionaries can be merged by the use of various functions and constructors in Python. In this article, we will discuss a few ways of merging dictionaries.  Using the method update () By using the method update() in Python, one list can be merged into another. But in this, the second list is merged into the first list and no new list is created. It returns  None .    Example # Python code to merge dict using update() method def Merge(dict1, dict2):      return (dict2.update(dict1))        # Driver code dict1 = { 'a' : 20 , 'b' : 8 } dict2 = { 'd' : 6 , 'c' : 4 }   # This return None print (Merge(dict1, dict2))   # changes made in dict2 print (dict2) Output None {'c': 4, 'a': 20,

ORGANIZATIONAL BEHAVIOUR

 ORGANIZATIONAL BEHAVIOUR The concept of organisational Behaviour Organization is the backbone of management. No management can perform its functions smoothly Without an efficient organization. DEFINITION It's refers to the behavior of individuals and groups within organizations and the interaction between organizational members and their external environment. https://deepanshugautam9899.medium.com/organizational-behaviour-10702e0307ce Nature of organization behaviour  A separate field of study An applied science A total system Approach An Interdisciplinary Approach Normative Science Humanistic and optimistic Approach A separate field of study: A discipline is an accepted science that is based on a theoretical foundation. But ,  organization behaviour  has a multi-interdisciplinary orientation and is, thus, not based on a specific theoretical background. Therefore, it is better reasonable to call  organization behaviour  a separate field of study rather than a discipline only. An

What is IOT - Internet of Things

Simply, IoT stands for Internet of Things (IoT) which refers to a system of interrelated, internet-connected objects that are able to collect and transfer data over a wireless network without human intervention. As you know that in today's era, businesses are motivated and totally dependable on IoT because of the followings- The prospects of increasing revenue,  Reducing operating costs, and  Improving efficiencies etc  Businesses also are driven by a need for regulatory compliance. Almost every coming week comes with a newer technologies and connectivity strategies which hits the market.  IoT innovation will continue to evolve, furthering the transformation of unconnected objects into smart connected devices and there are a lot of technologies which can easily gather all the needful information from these IoT devices and brings a clear and meaningful picture to the business and they can take a right decision to improve their business strategies . This trend wil