Functions are block of codes that are designed to perform specific task .In this chapter you will study everything about function. If you have to perform a task multiple times throughout, so instead of writing code again and again you can define a function for this task and can call that function whenever we want … Continue reading FUNCTION IN PYTHON
Category: 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
Errors and Exception Handling
In this blog we will learn about Errors and Exception Handling in Python. You've definitely already encountered errors by this point in the course. For example: Note how we get a Syntax Error, with the further description that it was an EOL (End of Line Error) while scanning the string literal. This is specific enough … Continue reading Errors and Exception Handling
DATA TYPES IN PYTHON
Since everything is object in python programming, So every values in python has a data type.The various data types in python are: Numbers. List. Tuples. Strings Set Dictionary 1.Numbers In python numbers are categorized as : Int (ex: 3, 4, 5 , …) Float (ex: 3.0, 4.0, 5.0 , …) Complex (ex:1+2j, 2+3j , 2+5j, … Continue reading DATA TYPES IN PYTHON
if,else,elif Statements in python
if Statements in Python allows us to tell the computer to perform alternative actions based on a certain set of results. Verbally, we can imagine we are telling the computer: "Hey if this case happens, perform some action" We can then expand the idea further with elif and else statements, which allow us to tell the computer: "Hey if this … Continue reading if,else,elif Statements in python
Tuples
In Python tuples are very similar to lists, however, unlike lists they are immutable meaning they can not be changed. You would use tuples to present things that shouldn't be changed, such as days of the week, or dates on a calendar. You'll have an intuition of how to use tuples based on what you've … Continue reading Tuples
Comparison Operators in PYTHON
These operators will allow us to compare variables and output a Boolean value (True or False). If you have any sort of background in Math, these operators should be very straight forward. Table of Comparison Operators: Operator Description Example == If the values of two operands are equal, then the condition becomes true. (a == … Continue reading Comparison Operators in PYTHON



