Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways

Hello World | Python for Data Science | Day 2

Hello Pyfans! 
In the previous article, we discussed Python installation. Now it’s time for us to dive into the code. For any programming language, the very first program is “Hello, World!”. The famous “Hello, World!” program is used to illustrate the basic syntax of a language.  So, let’s acquaint ourselves with the environment and write our first line of code in Python to embark on this incredible journey of learning!

For this article, we will be using IDLE to write our first Python program. 

STEP 1: As we demonstrated in the previous tutorial, IDLE is automatically installed when you download Python. If you have trouble finding IDLE, just type IDLE in the Start menu’s Search bar and hit enter. 

STEP 2: When you click on IDLE in the search results, the Shell screen will appear as displayed below.

STEP 3: Click on File in the Menu Bar and select New File. The untitled screen shown below will appear. This is the space where we will type the code.

STEP 4: Now type the following line of code:

print(“Hello, World!”)

The line, when typed, will appear as shown below:

STEP 5: To run the file, hit the F5 key on the keyboard. The following pop-up box will appear.

STEP 6: Click OK. Give a name to your file and save it in your preferable location on the computer. 

STEP 7: As soon as you click “Save”, the following Shell window will appear with your output.

Congratulatulations! With this tutorial, you have written your first line of code in Python. All the adventure starts with the first step.

A brief about the print statement:

In Python, the print() function is used to print content on the console. Let’s identify its structure.

                         print(“Hello World!”)

The contents of the brackets are the words to be printed on the console. These words are written within inverted commas. The print function is used for various purposes.

It can be used to display messages to prompt the user for entering inputs, displaying output, etc.

To learn more about the usage of print, you may also refer to https://www.w3schools.com/python/ref_func_print.asp

Follow us along your Python journey. We promise to make it super easy and fun for you 🙂

The Data Monk Interview Books – Don’t Miss

Now we are also available on our website where you can directly download the PDF of the topic you are interested in. At Amazon, each book costs ~299, on our website we have put it at a 60-80% discount. There are ~4000 solved interview questions prepared for you.

10 e-book bundle with 1400 interview questions spread across SQL, Python, Statistics, Case Studies, and Machine Learning Algorithms – Ideal for 0-3 years experienced candidates

23 E-book with ~2000 interview questions spread across AWS, SQL, Python, 10+ ML algorithms, MS Excel, and Case Studies – Complete Package for someone between 0 to 8 years of experience (The above 10 e-book bundle has a completely different set of e-books)

12 E-books for 12 Machine Learning algorithms with 1000+ interview questions – For those candidates who want to include any Machine Learning Algorithm in their resume and to learn/revise the important concepts. These 12 e-books are a part of the 23 e-book package

Individual 50+ e-books on separate topics

Important Resources to crack interviews (Mostly Free)

There are a few things which might be very useful for your preparation

The Data Monk Youtube channel – Here you will get only those videos that are asked in interviews for Data Analysts, Data Scientists, Machine Learning Engineers, Business Intelligence Engineers, Analytics managers, etc.
Go through the watchlist which makes you uncomfortable:-

All the list of 200 videos
Complete Python Playlist for Data Science
Company-wise Data Science Interview Questions – Must Watch
All important Machine Learning Algorithm with code in Python
Complete Python Numpy Playlist
Complete Python Pandas Playlist
SQL Complete Playlist
Case Study and Guesstimates Complete Playlist
Complete Playlist of Statistics

About TheDataMonkGrand Master

I am the Co-Founder of The Data Monk. I have a total of 6+ years of analytics experience 3+ years at Mu Sigma 2 years at OYO 1 year and counting at The Data Monk I am an active trader and a logically sarcastic idiot :)

Follow Me