Python – Hello World!

Python is one of the simplest languages to learn, created by Guido Van Rossum. You can follow him on twitter. Out of all the languages, I find python as a one of the coolest languages every programmer should know. Python works very well when it comes to automating. I have automated tons of dozens of my boring tasks. I built web scrappers, bots and what nots.

Python has wide amounts of libraries available, widely used web frameworks. Python is also being used in Data Science. There are tons of things you could with it.

Know that Python is a scripting language, just like JS. Scripting languages do not require the compilation step and are rather interpreted. 

So Let me introduce you to Python, Say Hello World!

print("Hello World!")

Well, a hello world program in python costs you just one line.

Comments in Python.

Comments are the lines in program that are not executed.

# This is single line comment. hash symbol is used.


'''
This is multi line comment.
Yes it is!
Trust me :)
'''

Variables in Python.

Variables are storage locations where you can save values like numbers, strings, etc.

x = 12
y = 10
z = x + y # this will be 22

To Run Python program.

Download and install python if not installed on your machine. and run the below command in terminal

$ python program.py

So, Thats it for now, I will be covering other concepts of python programming. So stay tuned.

Sharing options: