Learning Python Part – 12: Python Numbers

In previous part, we talked about different types of literals in Python programming language. In this post we will explore Python numeric literals which actually refers to Python numbers.There are four built-in data types for numbers:IntegerLong IntegerFloating Point NumberComplex NumberWe can use the type() function to know which class a variable or a value belongs to … Continue reading Learning Python Part – 12: Python Numbers

Learning Python Part-11: Python Literals

Literal in Python, is a raw data that is passed on to a variable or constant as values. In Python programming language, there are various types of literals as listed below:Numeric Literals:Numeric Literals are immutable (unchangeable). Numeric literals can belong to different numerical types like Integer, Float, and Complex.Examples:String literals:A string literal is a sequence of characters … Continue reading Learning Python Part-11: Python Literals

Learning Python part-9: Python Statements

Python Statements:Instructions that a Python interpreter executes are called statements. There are different types of statements in the Python programming like Assignment statement, Conditional statement (if..elif...else), Looping statements (For loop, While loop)Single line statements:Example:a = 1 in above example, a = 1, is an assignment statement that assigns variable "a" with a value of 5. … Continue reading Learning Python part-9: Python Statements

Learning Python Part-8: Python Variables and Python Constants

It is not possible every time for programmer or user to provide input values to be used in program for some operations. This approach is fine when we are working in interactive mode or testing some small programs.However, in realtime scenarios, most of the times we need to provide and store the values in memory … Continue reading Learning Python Part-8: Python Variables and Python Constants

Learning Python Part-7: Python Identifiers

As we discussed earlier, in python programming, we use Object Oriented Programming (OOP) extensively. So before we go ahead and start creating objects like variables, classes or functions, we need to understand few basic considerations about how to set identifiers. In other words, naming convention rules for objects.Try to use names that helps to understand … Continue reading Learning Python Part-7: Python Identifiers