Skip to main content

Encountering The Python



What is Python?

As per Wikipedia “Python is a widely used high-level, general-purpose, interpreted, dynamic programming language.” Python is an open source programming language which was conceived in the late 1980s and its implementation began in December 1989 by Guido van Rossum (more on it here).

What kind of programing language?

To give a better idea let's look at the below mentioned summary-
  • High level language - Python is a high-level language because it provides strong “abstraction”.
  • Interpreted - Python is an Interpreted language because it does not run on a compiler.
  • Dynamically typed language - Python is dynamically typed because in python every variable is bound to an object.

Why should I learn Python?

Python is a very powerful programming language, secondly it's easier to learn and since it's interpreted language the code is easier to understand. Lastly there is a huge community supporting Python so if you get stuck anywhere lot's of help are available out there.

Python as a language is very interesting since it can be used as a acripting language as well as a programming language complete with classes, objects variables and the works.

Python basics

The first basic thing that we can learn to do in Python is calculations, yes like other programming languages python is also very capable of handling numbers as small as 0 to as large as 100000 and more. So, using python as a calculator is an obvious choice to get started. Consider the below example-
>>> 2+24>>> 2 * (5-6)-2

In the above example what we did was that we calculated the sum of 2 and 2 and we did a multiplication of 2 with the sum of 5 & 6. We can also assign these numbers to some variables as shown in below example -

>>> var1 = 2
>>> var2 = 2

>>> tot = var1+var2

>>> tot
4
What we did above is that we assigned the variable "var1" to a number 2 and the variable "var2" again to a number 2, then we calculated the sum and assigned the result to a variable "tot".

This is how we can use python to carry out basic mathematical operations and we can use variables to store the numbers and the results of the mathematical operations. All the above examples just scratches the ability of python as a programming language but there's more to it and there's more to learn. If you want to get started with learning python and learn more about downloading and installing python, learning about expressions, operators and variables then you can go ahead and purchase this lesson and you can get started with explore python.

If you wanna get started in learning Python then why not get started with the python basics chapter. Check out this link to access the Python Basic Chapter for free.


If you want to download a copy of the chapter then purchase the chapter by clicking on the following link.

Additionally you can also bug me on Quora. You can also find me on Twitter or Facebook. So, why wait go ahead and start exploring.

Comments

Popular posts from this blog

While Loop in python : How to become a Python Jedi - Beginners Python Programming Tutorial - Part 6

Welcome back friends to another post on TheCodingProject and we are back with the sixth chapter of the Beginner Python programming tutorial - How to become a python Jedi. This time we are going to learn how to use while loop in python.
The While Loop statement? In Python Programming, There are 3 types of loops →
While loop For loop Nested loops
Now to get into some action→
Let’s consider that two groups of aliens have landed on earth  out of these two one of the group is good & the other are the bad guys. The govt. Has given you the task of designing a system that takes in input from different eyewitnesses & then classify that whether the aliens that these eyewitnesses encounter are the good guys or bad guys.










Copy & paste the above code in your editor and run this code. What do you get ? When the input is Autobots it matches the condition aliens == "Autobots" & it enters the loop to prints the statement pointed by the print method.
We can also use negative conditions…

How To Install Tensorflow On Windows

Why I am writing this tutorial ?
Recently I have started learning machine learning specifically DeepLearning for one of my pet projects, and during this quest of mine I wanted to learn TensorFlow library which is developed by Google. Learning is one thing but first I needed to install the library, but there was this problem which I faced during the installation. I am using Anaconda as my package manager and trying to install the Tensorflow library on my work computer which is behind a proxy, installing directly from the anaconda cloud while behind a proxy always displayed a proxy error.

How did I resolve the issue? Well this is exactly what I am going to write down in the below tutorial. The Steps To Follow
Before we get all cosy with this short tutorial on Tensorflow installation, let me tell you that
this tutorial is on the assumption that you have already installed Anaconda on your machine and you know at least a few basic things or two about python.
If you want to learn basic pyt…

For Loop in python 3 : How to become a Python Jedi - Beginners Python Programming Tutorial - Part 7

I am back again with another part in the beginner python programming tutorial series. We will continue with "Loops" but this time we are going to learn how to use for loop in python 3. 


Difference between For loop and While Loop
A "For Loop" and "While Loop" have a common connection that both are looping statement, but major difference is that unlike while loop, a for loop gets executed a specified number of times.



We can break down the For loop into the following components(Refer to the for loop flow chart below).
for keywordvariable namecall to the range functioncolon operatorclause or block of code Hovering over the flow-chart
The above flow-chart is..well horrible I know, but I make my own drawings because I can't afford an artist. So, bear with me. In the above flowchart is a very basicy, laymanish representation of a for loop. The decision box contains the For statement along-with it's soulmate i.e the Range function. As long as the variable I …