Tag: statement:
Python: Open a file using “open with” statement & benefits explained with examples
In this article, we will discuss how to use “open with” statement to open a file and what are its benefits. Also, how to open multiple files in a single “open with” statement. The need for “open with” statement Before going into the “with statement” we need to understand the requirement behind it. For that, …
Python: Open a file using “open with” statement & benefits explained with examplesRead More
Python – if…elif…else statement
In this article, we will learn how to alter the flow of code in multiple directions based on the conditional expression using the if…elif…else statement. In the previous two articles, we discussed if-statement and if…else statements. Using them, we can logically control the flow of execution in the program. We can direct the flow in …
Python – if…else statement
In this article, we will learn how to alter the flow of code based on the conditional expression using the if…else statement. While developing applications, for a programmer, it is essential to know how to control the flow of code using conditional expressions. In the previous article, we discussed how we could use if-statement to …
IF in SELECT statement MySQL
‘IF’ in ‘SELECT’ statements is used to get the output based on a column value. This article will see how to get output in ‘SELECT’ statements based on ‘IF’ in a MySQL query. Table of Contents ‘IF’ with ‘SELECT’ using – IF() function ‘IF’ with ‘SELECT’ using – case SELECT with UNION Before moving into …
Combine For Loop & if-else statement in Python
In this Python tutorial, you will learn how to combine a for loop with if / if-else statements in Python. Table Of Contents Introduction Combine a for loop and if statements Combine for loop and nested-if statements in Python Combine for loop and if-else statements How to Combine for loop and nested if-else statements? Summary …
Logical “and” & “or” with if statement in Python
In this Python tutorial, you will learn how to use the logical and (&&), logical or (||) operators with if statement in Python. Table Of Contents logical “and” & “or” operators in Python Using logical “and” with if statement Using logical “or” with if statement Using logical “and” logical “or” with if statement Summary Let’s …
What is the alternative of switch statement in Python?
In this article, we will discuss about the alternatives of switch statement in Python. Table Of Contents Introduction New Switch Statement with match and case keywords in Python Alternative of Switch Statement in Python: If-Else-Elif Alternative of Switch Statement in Python: Using dictionary Summary Introduction In other programming languages, like C++ and Java, we have …
What is the alternative of switch statement in Python?Read More
DROP multiple columns in MySQL with single ALTER statement
This article will see how to DROP multiple columns from a MySQL table with a single ALTER statement. Multiple columns can be deleted from the MySQL table using a single ALTER statement by separating the DROP keyword and column name list with a comma. SYNTAX:- ALTER TABLE table_name DROP column1, DROP column2, DROP column3……..; EXAMPLE:- Advertisements Let …
DROP multiple columns in MySQL with single ALTER statementRead More
How to Write a Personal Statement for University Examples
At any university in the world, the personal statement is an essential component of university applications. It’s your opportunity to demonstrate what makes you unique, aside from your birth name, thumbprints. It entails writing about your skills, accomplishments, and aspirations to persuade your selected university that you are a good fit for their programme. Generally, …
How to Write a Personal Statement for University ExamplesRead More
M-PESA Statement ▷ Check Online and Get Yours via Email Now!
Do you want to know how to check, request, and get Safaricom MPESA statement online via email for another number in 6 months and 3 years online? If YES, then this is the only post to read today. One of the best ways to track how you’re spending the cash you receive via MPESA is …
M-PESA Statement ▷ Check Online and Get Yours via Email Now!Read More