How to start with Python?

Anurag Singh
3 min readJun 16, 2021

In this article, I will discuss how can you start with Python as Programming Language. For clear understanding, read the full article, go through each and every point. In the end, you can easily step into the world of programmers.

Medium

print(“Hello Folks, Let’s Start”)

WHY PYTHON?

Python is one of the easiest languages to learn. Python is a high-level programming language. Python has lots of accessible libraries(TensorFlow, PyTorch, etc.) and frameworks(Web2py, Pyramid, etc.). Python is very popular and used by many organizations (Facebook, Google,..).

Setup

  1. Install any integrated development environment (IDE) to write code and start with Python, here are some best IDEs(click to download)

(a) Python IDLE

(b) PyCharm

(c) Visual Studio

Take some help from YouTube, set a peaceful and easy environment to code.

Learning

Beginner Level

1. Basic

Learn variables and data types, and learn knowledge about

int, str, float, bool, complex, list, set, tuple, dict .

Some sites to learn Python:

SoloLearn, W3Schools, GeeksForGeeks.

Watch some YouTube tutorials to learn basic data types.

2. Operators

Operators are used to perform operations on variables

  • Arithmetic operators
  • Assignment operators
  • Comparison operators
  • Logical operators
  • Identity operators
  • Membership operators
  • Bitwise operators

3. If-else and elif statement

In if-else, operators plays an important role,

basic if-else program,

a = 10
b = 20
if b > a:
print(“b >a”)

4. Basic Loops

Loops are used for iterating over a sequence.

(a) While loop

(b) For loop (learn properly)

(c) Do while loop

Intermediate

  1. Functions

Functions are blocks of code that run as and when they are called. It is recommended to have parameters and arguments as your prerequisites before you familiarize yourself with the parameters and arguments of any function.

2. Array

Learn slicing, indexing, accessing elements (same concepts for Lists also).

3. Lambda function

4. Python Modules -learn importing modules to your code such as (math, calc, etc), a module makes the code easier to understand and use.

SOME OTHER INTERMEDIATE CONCEPTS IN PYTHON ARE RECURSION, OBJECT ORIENTED PROGRAMMING, PRE-DEFINED FUNCTIONS(all(), map(), len(), upper(), lower(),etc.).

Now you are ready to dive into Programming World!

The most important catalyst in learning new concepts and improving your skills will be Competetive Programming(CP). Frankly speaking, CP provides you a platform to compete and share knowledge with others. If you are a college student then CP is the best practice for you, branch doesn’t matter for knowledge.

To start your CP journey you may check these sites

  1. HackerRank
  2. CodeChef
  3. CodeForces
  4. LeetCode

Participate in CP contests organized by these sites(monthly or weekly). It will definitely increase your knowledge, quality of code, and thinking capacity.

Help your friends to write code, try to find errors, or an easy approach.

BIG STEP:

Learn about some high-level concepts, you may start with DPhi, it is a well-known site to learn Data Science and Artificial Intelligence.

Or you may learn Development(Web, Game, Language, etc.) using Python Frameworks(Django, Flask, Pygame, etc.), again it is entirely your interest in which field you want to enter.

Also refer to Coursera, Udemy, IBM online courses to learn these concepts.

Do participate in hackathons, make some projects, write good quality code, solve queries, contribute to open source projects, apply for internships.

Try your best!

Write 15 lines of code daily!

Never give up!

LinkedIn : Anurag Singh

Feel free to ask anything.

Thank You!

--

--