COMPARISON, LOGICAL, ASSIGNMENT AND BITWISE OPERATORS In this blog we will see about Arithmetic operators and understand how to use it with Python IDLE to perform certain calculations. PYTHON COMPARISON OPERATORS OPERATOR DESCRIPTION EXAMPLE == Checks whether LHS is equal to RHS, then the condition becomes true 10==10 is true != Checks whether LHS is not equal to RHS, then the condition becomes true 2!=3 is true > Checks whether LHS is greater than RHS, then the condition becomes true 6>3 is true < Checks whether LHS is less than RHS, then the condition becomes true 6<10 is true >= Checks whether LHS is gre...
FUNCTIONS IN PYTHON A function is a group of statements defined to perform a specific task. It is a block of code which can be used multiple times to perform a related actions. It breaks your code and makes it more convenient, readable, manageable and organized. As discussed in earlier videos, Python have many predefined or built in functions like print() , help() ,etc. This video and blog will explain you how you can create user defined functions in python. How to define a function? Syntax: def functionname (arg1, arg2,…): Set of statements(s) Ø Every function block begins with def keyword which is followed by functionname and arguments which come under () round parenthesis. Ø Function can have as many arguments as user define and zero argument as well. Ø Every arguments are separated by a comma and after function is defined it is ended with colon. Ø Indentation is important...