Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

vinish.ai Latest Articles

ELSE statement in Python

In Python, we can have the else statement associated with a loop statement. If the else statement is used with a for loop, the else statement is executed when the loop has completed iterating. But when used with the while ...

Continue statement in Python

Like the break statement, Python supports another statement called the continue statement. It can only appear in the body of a loop. When the compiler encounters a continue statement, then the rest of the statements in the loop are skipped, ...

Break statement in Python

In Python, the break statement is used to terminate the execution of the nearest enclosing loop in which it appears. When the break statement is encountered inside a loop, the loop is immediately exited, and the program continues with the ...

Python Loops

Python supports basic loop structures through iterative statements. Actually, iterative statements are decision control statements that are used to repeat the execution of a group of statements. Python supports the following iterative statements: while loop for loop while loop: while ...

if-elif-else statement in Python

Python supports if-elif-else statements to test additional conditions apart from the initial test expression. This is also known as the nested-if construct. The syntax of if-elif-else statement is given below: if(condition 1): statement block 1 elif(condition 2): statement block 2 ...

Nested If statement in Python

A statement that contains other statements is called a compound statement. To perform more complex checks, if a statement can be nested, it can be placed one inside the other. In such a case, the inner if the statement is ...

Python if-else Examples

In Python, the if statement test expression is evaluated, and if the result is True, the statement(s) followed by the expression is evaluated; else, if the expression is False, the statement is skipped by the compiler. But what if we ...

IF-ELSE in Python

Selection control statements or conditional branching statements usually jumps from one part of the code to another depending on whether a particular condition is satisfied or not. Actually, these statements allow us to execute statements selectively based on certain decisions. ...

Dictionary Data type in Python

In Python, Dictionaries stores data in key-value pairs. The key values are usually strings, and the value can be of any data type. The key-value pairs are enclosed with curly braces ({}). Each key-value pair is separated from the other ...