Devtekk
Satyam Kulkarni
Published in
3 min readMar 20, 2020

--

I am Satyam Kulkarni, a Python Developer who started journey 2 years ago and continuing my journey..

Everyone states that,

Python is a easy language. One with no prior Knowledge can learn it.

It has got a pretty easy syntax and a vast number of libraries to support any work you want to do with Python.

Starting with Simple Python Application

Photo by Chris Ried on Unsplash

Python has its applications in -

  1. Machine Learning & AI
  2. Data Science
  3. Backend Development
  4. Desktop GUI App Development

and many more..

First Things First

Before Starting with Python,

We need to install Python on our system and set up a text editor to write Python.

Install Python Interpreter

https://www.python.org/

Go to Python’s official website and Download Python 3.x Interpreter Suitable with your system.

Setting Up Text Editor

I Personally use Sublime Text Editor for Small Projects and for Large Projects it is better to go with an IDE like Pycharm.

But for Beginner, a text editor is good.

Sublime Text

Download Sublime Text here

Getting Started with Python

Photo by Maxwell Nelson on Unsplash

Python code offers readability and is syntactically more like a language.

A Simple Hello World Program in Python can be written as

print(“Hello, World”)

print is Statement in Python Which prints Strings, Integers and many more on your Console.

It’s that simple.

Variables

Variables are simply blocks of small memory which can store a data-type.

Variables can be of Integer Type like below example, it can be of String(Text), Float(Decimal Point Number).

Important Point — Variables in Python do not need to Define DataType

for eg.

a = 10

It is a basic syntax in which a memory block denoted by variable is assigned value of 10.

We can access the memory block using the name of variable

for eg.

To print the value of we can do

print(a)

You can see here we have not used “” Double Quotation Mark to print a variable whereas in first example where we printed Hello World, we used Quotation Marks.

Simple Exercise

Add two variables using Python

In this Exercise, we have to add 2 Numbers using Python

First of all, Decide How many variables you want?

In this Case we need 3 Variables,

1 for First Number, 1 for Second Number, 3 for Addition of Numbers

First try to Solve on your own

Code:

a = 10
b = 20
c = a + b
print("Addition of a and b is ", c)

Tadaa!! You wrote your First Python Program.

You will learn more about Python in our Future Tutorials

--

--

Devtekk
Satyam Kulkarni

I am Satyam Kulkarni, a Professional Web Developer and a content writer and also the Author of DevTekk. I will write about Programming and related Stuff