Different types of Logical operators in Python

Logical operators are used to comparing multiple relational expressions.

In nesting where one if statement within another if statement because of that, multiple statements will execute and code got lengthy.

For solving this you can use logical operators by using that combine more than one relational expression and according to logical operator return true or false.

They are 3 logical operators in Python –

  1.  And
  2. Or
  3.  Not

Different types of Logical operators in Python

Read more

How to use if statement in Python

All programming language has if statements that allow controlling the flow of the program.

You can define your code in the block which you want to execute when the condition is true.

In the tutorial, I show how you can use if statements in your program with an example in Python.

How to use if statement in Python

Read more

Dictionary in Python

Dictionary in Python is similar to an associative array in PHP.  Dictionary are create using curly braces {} inside it the key is separated with items using a colon (:). For accessing items of a dictionary, the key is been for this. Dictionary is mutable.  Contents Creating a Dictionary Accessing Dictionary Update Dictionary Delete Dictionary Dictionary … Read more