Skip to main content

Posts

Showing posts with the label What is Python

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 pri...

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...