Python Comprehensions

Creating a new sequence from given python sequence is called comprehension. 

Python supports the following 4 types of comprehensions:

  • List Comprehensions
  • Dictionary Comprehensions
  • Set Comprehensions
  • Generator Comprehensions
  • nested Comprehensions
    
.   
   

























Lambda Functions


What are lambda functions in Python?

In Python, an anonymous function is a function that is defined without a name.

Anonymous functions are defined using the lambda keyword.

Hence, anonymous functions are also called lambda functions.

Syntax of Lambda Function in python

lambda arguments: expression
 








WHY AND HOW TO START WITH PYTHON



WHY PYTHON ?

Python has been taking the world of programming by storm since the last decade.

Python is a high-level, interpreted, general-purpose programming language.It supports both object-oriented programming and structured programming.It has many advantages when compared to other programming languages.

According to the 2019’s StackOverflow’s Developer Survey, Python is the 2nd most loved programming language in the world.As a result of its versatile nature, it has become one of the most high-in-demand technologies around the world. As a result, a Python developer’s salary in India is significantly higher than those who are working with legacy web-development languages as mentioned above.

Below are some features due to which people choose python as their first programming language.

  • Python’s popularity & high salary
  • Python is used in Data Science (AI,ML and Analytics)
  • Python’s is used scripting & automation 
  • Python is used with Big Data
  • Python supports Testing
  • Python is used in GUI development
  • Python is used  in Web Development

HOW TO LEARN PYTHON?

Before learning any programming language, one should be aware of some basic concepts which are common for most of the languages.E.g - OOPS concepts,data structures and algorithms , mathematics, etc.

There are many online resources,books,videos and coding platforms available to get started with python. 

Below steps will be helpful to get started with python

  • Step 1 -  Go through a tutorial series which you are able to understand  and learn basic concepts about python.
  • Step 2 - Try to solve questions in hacker rank or any other coding platform. This will make your concepts strong.
  • Step 3 -  Explore different libraries and get familiar with their functionality.
  • Step 4 -  Gather ideas and develop a project on your own.This will enhance your understanding about the language.
  • Step 5 - Get familiar with different SDLC methods, version control systems and cloud computing.These skills have huge demand and  will  give you  an upper hand in clearing interviews.