Python Feed
Python
Python

How to do web scrapping using python?

Scrapping is a very interesting topic but serious as well. Because it is not a legal work until website owner a...

How to calculate number of days between two dates ...

You can use datetime module to get number of days between two dates, refer to below example to get the result: fro...

How to print a paragraph in Python?

We can get the same format as below using print function in Python: print("""   A string that you "don't" hav...

Why Python is so popular to do programming in Arti...

Saying Python is popular in machine learning and artificial intelligence would not be wrong because Python has a lo...

Python ORM with SqlAlchemy?

An ORM is Object Relational Mapper which maps with relational database management system to objects. ORM is not dep...

How to connect with MySql database and execute que...

You can connect with MySql database in Python using mysql connector python. You will need to install it first usin...

How to connect python with MySQL database?

Before using mysql, you need to install mysql.connector module. Use the below command to install it: $ sudo apt-ge...

How to print a calendar of month from a year in py...

You can get a python program below which will take two arguments year (eg. 2019) and month (eg. 6) in integer forma...

What are Pre-requisites to build a chatbot using ...

If anybody is willing to build a chatbot in python, there are some topics you need to be aware about first then it ...

How to generate a cohort using python?

You can create a cohort to do analysis for your business repetitive customers and can make necessary decisions acco...

Write a program to generate Fibonacci series in Py...

Fibonacci series is a series of numbers in which each number is addition of previous two numbers. So, lets create i...

What is the meaning of __name__ == "__main__" in ...

When a file executes it sets some special variables and __name__ is one of them. __name__ is set as "__main__" if i...

Some example of small logical programs in Python?

##Write a Python program to get the difference between a given number and 17, if the number is greater than 17 retu...

How to work with sleep or add delay in program?

Sleep function is present in time module of python. It is very useful when you are trying to add some delay in prog...

What is NLP?

NLP stands for Natural Programming Language. NLP belongs to one of the branch of Artificial Intelligence. It is use...

How to read and compare value of one csv with othe...

We are giving a complete code example of reading csv and picking value from one csv and reading other csv file to c...

What is the difference between "==" and "is" in py...

In python == checks equality of the value but "is" checks memory. You can refer to below example to understand it b...