For the following quiz questions, we will get a preview of comparison operators. In the table below, a=3 and b=4. Operator Description Example == If the values of two operands are equal, then the condition becomes true. (a == b) is not true. != If values of two operands are not equal, then condition becomes … Continue reading Booleans in Python(Comparison operators)
Tag: python 3.6
VARIABLES IN PYTHON
Unlike other programming language, Declaring variable in python is very easy, In python variable is created at the moment you assign a value to it. And variable can be of any data type. Example: Variable can be of any data type. Rules for Variable Names A variable can have a short name (like x and … Continue reading VARIABLES IN PYTHON
TAKING USER INPUT IN PYTHON
Programs are written to solve end user’s problem. To do this you need to get some information from user, at that time input ( ) function is used. What input ( ) function does: While run time when python sees input() function. In the program it pauses the program and wait for the user to … Continue reading TAKING USER INPUT IN PYTHON


