Online SQL Editor
sql-editor.programiz.com
The best SQL Editor to Run SQL queries online for free.
Python Program to Transpose a Matrix
www.programiz.com
In Python, we can implement a matrix as a nested list (list inside a list). We can treat each element as a row of the matrix. For example X = [ [1, 2], [4, 5], [3, 6]] would represent a 3x2 matrix. The first row can be selected as X [0]. And, the element in the first-row first column can be selected as X [0] [0]. Transpose of a matrix is the interchanging of rows and columns. It is denoted as ...
C++ "Hello, World!" Program
www.programiz.com
In this example, we will learn to create a simple program named "Hello World" in C++ programming. A "Hello, World!" is a simple program that outputs Hello, World! on the screen.
Python Program to Merge Mails
www.programiz.com
When we want to send the same invitations to many people, the body of the mail does not change. Only the name (and maybe address) needs to be changed. Mail merge is a process of doing this. Instead of writing each mail separately, we have a template for body of the mail and a list of names that we merge together to form all the mails. Source Code to Merge Mails # Python program to mail merger ...
Learn C++ Programming
www.programiz.com
If your goal is to quickly start programming without worrying about the nitty-gritty of how it actually works, then you might consider learning Python. C++ is ideal if you want to have a solid programming foundation and want to build systems that require high speed and performance because C++ allows you to work closely with hardware and memory.
Python Program to Swap Two Variables
www.programiz.com
Source Code: Without Using Temporary Variable In Python, there is a simple construct to swap variables. The following code does the same as above but without the use of any temporary variable.
Python String swapcase () (With Examples) - Programiz
www.programiz.com
The swapcase () method returns the string by converting all the characters to their opposite letter case ( uppercase to lowercase and vice versa). In this tutorial, you will learn about the Python String swapcase () method with the help of examples.
Python Program to Check Armstrong Number
www.programiz.com
Output 1 Enter a number: 663 663 is not an Armstrong number Output 2 Enter a number: 407 407 is an Armstrong number Here, we ask the user for a number and check if it is an Armstrong number. We need to calculate the sum of the cube of each digit. So, we initialize the sum to 0 and obtain each digit number by using the modulus operator %. The remainder of a number when it is divided by 10 is ...
Python __import__ () - Programiz
www.programiz.com
Use of __import__ () is Discouraged This __import__ () function is not necessary for everyday Python program. It is rarely used and often discouraged. This function can be used to change the semantics of the import statement as the statement calls this function. Instead, it is better to use import hooks. And, if you want to import a module by name, use importlib.import_module ().
Python Program to Find Sum of Natural Numbers Using Recursion
www.programiz.com
In this program, you'll learn to find the sum of natural numbers using recursive function.