Logical Operators in Python

In the previous article we have explored the various Arithmetic operations that can be utilized in Python, in this article we will further elaborate on logical operations that can be performed on files within Python. Logical operators in python are symbols or word used to combine expressions in such a way that the value of the … Read more

Arithmetic Operators in Python

At a basic level, computers only operate with numbers. Even within application programs in high-level languages, there are many numbers and operations internally. Fortunately, to get started it is enough to know the usual arithmetic. We will have a look at the various arithmetic operators in Python programming language. Arithmetic Operations & Arithmetic Operators in Python Before … Read more

Type Conversion in Python

While Python handles data types automatically, sometimes the program may require us to use exact specific data types rather than relying on the language to figure out what data types would be appropriate. Data types in Python allow you to classify data, define the values ​​that can be assigned, and the operations that can be … Read more

Python Integers: Type Casting and Doubling Integers | Swapping Values | Concatenation of Integers

In this article we will revise the Python Integer concepts we have previously gone through in while discussing Integer data types, we will have a look at how to solve common Integer problems involving type casting/conversion, doubling, swapping of integer values and the concatenation of integer values in Python. Typecasting and doubling Python Integers problem … Read more

Common String Operations in Python

In the previous article we have seen some of the list operations and string operations in python. Now we will look at some more vital string operations, keywords or functions in Python. Transformation/Manipulation of Strings There are a number of fun methods that we can use to transform our string text. Among those more important for … Read more

Important Methods of Dictionaries in Python

In the previous article we have looked at the definition, structure and various ways to add or remove different aspects of the Dictionary data type. In this article, we will continue to explore more about the Dictionary data type in Python along with operations such as len( ), copy( ) ,items ( ), fromkeys ( … Read more

Geometric Progression in Python Code

In the previous article we have seen the implementation of Arithmetic Progression in Python, in this article we will similarly explore the Geometric Progression in Python, the concepts and the logic or the formulae we operate by. A geometric progression is a sequence of nonzero numbers, each term of which, starting from the second, is equal … Read more

Python File Handling Methods |Operations on Files in Python

This article focuses on working with files (input / output) in Python : opening, reading, writing, closing and other operations. A file is just a collection of data stored as a sequence of bits on a computer. The information is stored in a heap of data (data structure) and is named “filename”. There are two main … Read more

Accept user input in Python 3 | User Input/output in Python 3

We have already seen and utilized the print() function  through many examples. It is utilized for displaying data, by default, on the output screen. However, in some cases we might need to further modify the output or need to receive specific input from the user to customize the Python program according to our needs. Entering input data … Read more

Errors and Exceptions in Python

It is a common occurrence to encounter errors or warnings while working with Python, or various different programming languages. These errors may occur due to a wide variety of reasons. The process of handling exceptions and errors in Python can significantly increase the resilience of program code to failures, due to which the program’s workflow … Read more