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 moreLogical Operators in Python

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 moreArithmetic Operators in Python

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 moreType Conversion in Python

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 morePython Integers: Type Casting and Doubling Integers | Swapping Values | Concatenation of Integers

Common String Operations in Python

In the previous article we have seen some of the list operations, along with string operations. 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 building …

Read moreCommon String Operations in Python

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 moreImportant Methods of Dictionaries in Python

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 morePython File Handling Methods |Operations on Files in Python

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 moreAccept user input in Python 3 | User Input/output in Python 3

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 moreErrors and Exceptions in Python

Lists in Python | Strings in Python – Complete Guide

In this article we will look at the list basics, appending elements to lists, removing list elements, sorting list elements, joining lists and various other fundamental list operations. We will also have a look at strings and the various operations that can be performed on them in Python. Lists in Python In the previous article …

Read moreLists in Python | Strings in Python – Complete Guide