Skip to main content


Showing posts from March, 2020

Learning Python Part-4: Python Keywords

Python has a set of keywords that are reserved words that cannot be used as variable names, function names, or any other identifiers They are used to define the syntax and structure of the Python language. In Python, keywords are case sensitive. There are 33 keywords in Python 3.7.  All the keywords (except True, False and None) are in lowercase. Below is the list of keywords in Python 3.7 I will not be using just syntax to explain these keywords, rather I will use some simple yet enough code examples considering new plus experienced people. For those who are new to python, if you find it difficult  to understand the complete code, just try to see the context and usage of keyword.  False :  This keyword is used to represent a boolean false. If a statement is false, “False” is printed. False in python equals to 0. True: This keyword is used to represent a boolean true. If a statement is true, “True” is printed. True in python equals to 1. None:


Welcome everyone to CodeZen. Learn to code with simplified tutorials and examples.  Our focus will always be on simplicity. Hence all programming tutorials and examples are written in simple, understandable language for everyone including beginners.  The only way to learn to program is by writing code. So we encourage you to try the example we provided, implement your imagination and take it to next level.  We know that there are thousands of resources available on these topics. We just want make difference in how the information is presented so that everyone can understand. We simply want to present a different approach of detailed yet simple, with other - more interesting - examples, and so on.

Learning Python: part-3 - Python Objects

Since beginning, we are referring to Object oriented language paradigm and its close relation to Python. So let's go ahead and understand, what is an Object in python language or any other OOP based programming language. According to official Python documentation:  Objects are Python's abstraction for data. All data in a Python program is represented by objects or by relations between objects."  The literal meaning of above statement sounds like everything in python is an object. Well, that may not clear the concept what exactly it means.  Let's try to understand it with some real life example. "First of all object can be anything that you wish to declare as per your program requirement. " Let's imagine you are sitting in front of your desktop computer at your office. Let's analyse before you start working. What you see? Don't shout COMPUTER :).  " I will use it later for explaining classes.  Reason?  Well

Learning Python part -2: Intro to Python

                                Python is high-level, general-purpose programming language. It was developed by Mr. Guido van Rossum and first released in 1991. Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming. Python was conceived in the late 1980s as a successor to the ABC language. Python 2.0 got released in 2000. This release introduced features like list comprehensions and a garbage collection system. Python 3.0 was released in 2008 and it is considered to be a major revision of the language. Due to this Python 3 is not fully backward-compatible. Most of the Python 2 code requires modification prior to running it on Python 3. Python 2.7.x, was officially discontinued in January 2020. Python emphasises code readability as it is meant to be an easily readable language. Code formatting in Python is visually uncluttered, and it often uses English keywords where other languages use punctuation.

Learning Python part 1: Intro to programming

Welcome everyone to this series on learning python programming. This post will be the first in this series and we will see basic introduction to the world of programming before we dive deep into it. This is just to have basics sound and clear. If you are already well versed with it, feel free to skip further to required section. So without any further delay, let's get started!!!! What is a Computer program? Well, a computer program is nothing but set of instructions grouped together and executed in order to get required result.  For example, We can write a simple Calculator program code in Python as below for some mathematical operations. You can find below code at  gitHub . What is Programming? As per technical definition, computer programming is the process of designing and building an executable computer program to accomplish a specific computing result. Basically programming involves tasks such as: Information gathering, analyzing, identifying require