My First Python Program and Introduction to Jupyter Notebooks

by | Oct 26, 2018 | Python | 0 comments

Every time you see “Hello World” is printing by means of code, you know One is trying a New Programming language. So Today is no different i am trying to learn python and first program will be printing “Hello World”.

I am a fan of CognitniveClass’ courses

They are easy, neatly demonstrated, no fancy ‘Interactive hype’ things and best of all, it is free. The First course in “Python learning is Python For Data Science” at cognitiveclass.ai.

print(“Hello world”) My first Python Program

Refer the Course Video

Everything is crystal clear in video.

Important Points to Note is:-

1.When you run the code, Python will ignore the comment.

2.A Syntactic error is when Python does not understand your code. For example, if you spell print “frint”, you will get an error message.

3.A Semantic error is when your logic is wrong. Program will execute but one will not get desired result.

Writing comments in Python

Comments in Python start with the hash character, # , and extend to the end of the physical line. A comment may appear at the start of a line or following whitespace or code, but not within a string literal. A hash character within a string literal is just a hash character.

In addition to writing code, note that it is customary to comment your code to help describe what it does. Not only does this help other people understand your code, it can also serve as a reminder to you of what your code does. (This is especially true when you have the habit to forget)

To write comments in your Python code, use the hash symbol (#) before writing your comment. When you run the code Python will ignore everything after the # in that line.

How to use Jupyter Notebooks for Python Programming

The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.

The Notebook has support for over 40 programming languages, including Python, R, Julia, and Scala.

Source:-Get a Feel of Notebook

Refer some online Tutorials:-

Jupyter Notebook Tutorial: Definitive Guide (article) – DataCamp

Jupyter Notebook Tutorial in Python – Plotly

Join Today

Know more about latest trends, News in Field of Data Analytics.

We will offer Free SAS and Python Programme in Data Science & enhance your understanding of data analysis.

By rlochan2021

We offer Everything Free here and always will be, so joining is Risk Free and Always Cost Free.

Check Out These Related Posts

Functions in Python Programming for Data Science

I am really impressed with two online courses one is “Analytics in Python” at edX by ColombiaX and another is “Python for Data Science” at cognitiveclass.ai or (Previously Bigdatauniversity). So i am going to document what ever i will learn about functions in these two courses. First there are Built-in functions(Ready made for use), such […]

read more

String Functions in SAS and Python

I always believe SAS and Python can make a great team together for Data Scientists. So Why Now we study them together. In this Post we will discuss various String functions in SAS and Python. String Functions in Python 3 Hope you must have gone through my previous post “Python Programming- Strings explained“. len(): returns […]

read more

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *