Home » Python

Tag Archives: Python

Python join() method Tutorial

Hello in this tutorial, we will understand the join() method in python programming. 1. Introduction The join() method in python programming joins different elements and return a combined string. This method takes the iterable as an argument. This method returns the TypeError exception if the iterable contains any non-string values. It is represented by the following syntax – Method syntax ...

Read More »

Python Set intersection Method

Hello in this tutorial, we will explain how to set the intersection method in python programming. 1. Introduction The intersection() method in python programming returns a set containing common elements from one or more given sets. Its syntax representation is given as below: set.intersection(set1, set2 ... etc) The parameter set1 is required to search for equal items and set2 . ...

Read More »

Python List vs Tuples

Hello in this tutorial, we will see and understand the differences between List vs Tuples in Python programming. 1. Introduction List and Tuple in python programming are used to store the data. List and Tuple data structures are similar in most cases but still have a few differences and we will understand them in this tutorial. List in python are ...

Read More »

Python Inheritance Tutorial

Hello in this tutorial, we will understand inheritance in python programming. 1. Introduction Inheritance is an important concept in any programming language. It provides code reusability as we can use the existing classes to create new classes instead of creating it from scratch. In this, the child class acquires the properties of the parent class and can access all the ...

Read More »

Where is Apache Spark heading?

I watched (COVID19-era version of “attended”) the latest spark Summit and in one of the keynotes Reynold Xin from Databricks, presented the following two images comparing spark usage on their platform on 2013 vs. 2020: While Databricks’ platform is, of course, not the whole spark community, I would wager that they have enough users to represent the overall trend. Incidentally, ...

Read More »

Python Errors and Built-in Exceptions

Hello in this tutorial, we will understand errors and built-in exceptions in python programming. 1. Introduction 1.1 Error A typing mistake can lead to a fault in the programming language because of the syntax rules while coding is known as an error or popularly known as the syntax error. A syntax error is the most common situation where you break ...

Read More »

How to Round Numbers in Python

Hello in this tutorial, we will understand the round() method to round the numbers while working with decimal numbers in python programming. 1. Introduction The round() method in python is used to round the numbers while working with decimal numbers. It is represented with the following syntax – 1 round(number, digits) Where, number is a required param for the number ...

Read More »

Python String replace Method

Hello in this tutorial, we will understand the string replace() method in python programming. 1. Introduction replace() method in python programming returns a copy of a string where all occurrences of a substring are replaced by the new string. The method also accepts an optional count argument only if the first count occurrences are to be replaced. 1 my_string.replace(old_string, new_string, ...

Read More »

Python os.walk() Method

Hello in this tutorial, we will understand the os.walk method to list the files in a directory using the python programming. 1. Introduction The os.walk(……) method will generate the file names in a directory tree by walking the tree either top-down or bottom-up. Represented with the following syntax – 1 os.walk(path_name, topdown=False, onerror=None, followlinks=False) Where, path_name denotes the directory path ...

Read More »