MySQL GROUP_CONCAT Function with Examples

How to Use the MySQL GROUP_CONCAT Function In this tutorial, you will learn how to use the MySQL GROUP_CONCAT function, which returns a string with concatenated values from a group and returns NULL if there are no non-NULL values. Learn more: Concatenate strings in MySQL GROUP BY clause in MySQL MySQL ORDER BY clause SELECT … Read more

Python find() String Method with Examples

How to Use the Python String find() Method In this tutorial, we’ll learn how to use the Python string find() method. The string find() method finds the first occurrence of a substring in a given string and returns the index of the substring if found. Python String find() Syntax: The syntax of the string find() … Read more

Python Variables – What are the Variables in Python?

Learn Variables in Python In this tutorial, you’ll learn what variables are in Python, how to create and assign values to them. What are the Variables in Python? In Python, variables used to store information and to be referenced and manipulated in the computer program. Python is an object-oriented and dynamic-typed programming language. Unlike other … Read more

Python Try Except – Exception Handling in Python

Exception Handling in Python Using Try and Except Statements In this tutorial, you’ll learn what exceptions are and how to handle exceptions in your Python programs using try and except statements.  In Python, the exception handling allows you to prevent the programs from crashing when something goes wrong during execution. What are Exceptions in Python? Python terminates and generates … Read more

Python any() Function with Examples

How to Use the Python any() Function In this tutorial, you will learn how to use the Python any() function, which returns True if any of the given iterable elements, such as a list, tuple, or dictionary, is True. Otherwise, it returns False. If the iterable is empty, any() returns False. Python sum() function Python … Read more

Python float() Function – Convert String to Float

How to Use the Python float() Function In this tutorial, you’ll learn how to use the float() function in Python. The float() function converts a number or string representing a number to a floating-point number. Python float() Function Syntax The syntax of the float() function is as follows: float(value) The float() Function Parameter value: A number or string … Read more

Python int() Function – Convert string to int

How to Use the Python int() Function with Examples In this tutorial, you’ll learn how to use the int() function in Python. Python int() converts a number or string (that is convertible) to an integer number. Python int() Function Syntax The syntax of the int() function is as follows: int(value=0, base=10) The int() Function Parameters value: A … Read more

Python reverse() and reversed() with Examples

How to Use reverse() and reversed() in Python In this tutorial, you’ll learn how to use the reverse() list method and reversed() function in Python. Python lists have a built-in method called reverse(). You can use it to reverse the elements of the list in place. There is also a built-in function called reversed() in Python. Unlike reverse(), the reversed() function takes … Read more

Python join() String Method with Examples

How to Use the join() String Method in Python In this tutorial, you’ll learn how to use the join() string method in Python. The join() string method returns a string, which is the concatenation of the elements in an iterable. It takes all items in the iterable and concatenates them, and returns the concatenated string. Python join() … Read more

Python if else Statement with Examples

How to Use if, elif and else Statements in Python In this tutorial, you’ll learn how to use if, elif, and else statements in Python. The Python if-statement is a control flow statement that allows you to execute a block of code. Python if Statement Syntax The following illustrates the syntax of the if statement: if expression: statement_list Here, the program evaluates … Read more

Python continue Statement with Examples

How to Use the continue Statement in Python In this tutorial, you will learn what a continue statement is and how to use it in Python. What is a continue statement in Python? The continue statement is a control flow statement used to skip the current iteration of a loop and continue with the next iteration. Learn … Read more

Python break Statement with Examples

How to Use the break statement in Python In this tutorial, you will learn what the Python break statement is and how to use it. Related tutorial: Python continue statement How do you use a break statement in Python? A loop iterates until a block of code satisfies a specified condition. In some cases, it … Read more

Python range Function with Examples

How to Use the Python range() Function In this tutorial, you will learn what Python’s range function does and how to use it. In Python, range() is a built-in function that starts with a given number and returns a sequence of numbers up to a given number. Typically, the range function is used in conjunction … Read more

Python while Loop with Examples

How to Use the While Loop Statement in Python In this tutorial, you will learn about the while loop statement in Python with examples. The while loop is a control flow statement that allows a code block to be executed repeatedly as long as the given condition remains true. See also: Python for loop statement … Read more

Python for Loop with Examples

How to Use the for Loop Statement in Python In this tutorial, you will learn how to use the for loop in Python. The for loop statement is a control flow statement used to iterate through a code block. The for loop statement is often used when the number of iterations is known. This tutorial … Read more