Skip to Content

Python String Uppercase – With Examples

In python, the built-in string function upper() is used to convert a string to uppercase. It converts all lowercase characters in a string to uppercase and returns it. Output: Table of Contents Syntax Examples How to check if a python string is uppercase or not? Syntax The following is the syntax for using the string …

Read More about Python String Uppercase – With Examples

Python String Join – With Examples

In python, the string join method, join(), is used to combine all the items of an iterable (example – list, tuple, set, etc.) into a single string separated by a separator. Output: Table of Contents Syntax Examples Syntax The following syntax is used to apply the string join function in python. Note: The string in …

Read More about Python String Join – With Examples

Python String Replace – With Examples

In python, the string replace function, replace(), is used to replace the occurrences of a substring with a different substring. It is an inbuilt string function that returns a copy of the string where occurrences of the original substring have been replaced by the new substring. Output: Table of Contents Syntax Examples Syntax The following …

Read More about Python String Replace – With Examples

Python String Split – With Examples

In python, a string can be split into smaller chunks using the split() function. split() is a string function that returns a list of words in the string separated by the delimiter string passed. By default, any whitespace is a delimiter. Output: Table of Contents Syntax Examples Syntax The following is the syntax to use …

Read More about Python String Split – With Examples

Python for Data Science – Data Structures

Data Structures in python allow you to store and access data more efficiently. In this tutorial, we’ll cover the four basic inbuilt data structures in python – lists, tuples, sets, and dictionaries. These inbuilt data structures are commonly used not just by programmers but also by data science practitioners for their day to day tasks. …

Read More about Python for Data Science – Data Structures

Lambda Functions in Python

Lambda functions in python are single expression functions that are not bound to a name. This is why lambda functions are also called anonymous functions. In this tutorial, we’ll look at lambda functions, how are they different from normal functions, and where are they used along with some examples. Table of Contents Lambda Function Syntax …

Read More about Lambda Functions in Python

Python String Concatenation – With Examples

Concatenating strings refers to simply combining them together. In this tutorial, we’ll explore the different ways in which strings can be concatenated in Python with examples. Table of Contents String concatenation in Python – using the + operator Other methods for string concatenation in Python Using the join() function Using the % operator Using the …

Read More about Python String Concatenation – With Examples

Python for Data Science: Control flow Statements

Control flow statements in python regulate the order of execution of commands. Conditional statements and loops are the common types of control flow statements used in python. This is the third article in our series Python for Data Science. In our first article, we introduced how data science is changing the world and why Python …

Read More about Python for Data Science: Control flow Statements