POST A PICTURE USING A BOT IN PYTHON

How to post a picture on Instagram automatically using bot in python? STEP 1: Install ‘Instabot’ package using the below command. pip install instabot STEP 2: Import class ‘Bot’ from ‘Instabot’ package. Command: from instabot import Bot STEP 3: Create a variable let’s say ‘bot’ and store the class ‘Bot’ in it. Command: bot=Bot() STEP … Continue reading POST A PICTURE USING A BOT IN PYTHON

GENERATORS IN PYTHON

A generator in Python is a function which returns an iterable object. We can iterate on the generator object using the “yield” keyword. But we can only do that once because their values don’t persist in memory, they get their values on the fly. Generators give us the ability to hold the execution of a … Continue reading GENERATORS IN PYTHON

PERKS ABOUT DJANGO

WHAT IS DJANGO? Django is a high level Python Web framework that encourages rapid development and clean, pragmatic design. It is a free and open source web application framework. WHERE DID DJANGO COME FROM? It is developed from a online news operation. It’s primary goal is to “ease the creation of complex, database-driven websites” It … Continue reading PERKS ABOUT DJANGO

PYTHON FUNCTIONS AND DECORATORS

Python Decorator Python Decorator is a relative change that you do in Python syntax to adjust the functions quickly. Any sufficiently generic functionality you can “tack on” to an existing class or function’s behavior makes a great use case for decoration. This includes: logging, enforcing access control and authentication, instrumentation and timing functions, rate-limiting, caching; … Continue reading PYTHON FUNCTIONS AND DECORATORS

BUILT-IN TYPES IN PYTHON

Here is the list of most commonly used built-in types that Python supports: Immutable Built-in Datatypes NUMBERS : Python supports integers, floats and complex numbers. An integer is a number without decimal point for example 5, 6, 10 etc. A float is a number with decimal point for example 6.7, 6.0, 10.99 etc. A complex number has a real and imaginary … Continue reading BUILT-IN TYPES IN PYTHON

PASS STATEMENT

What is the statement that can be used in Python if the program requires no action but requires it syntactically? The pass statement is a null operation. Nothing happens when it executes. You should use “pass” keyword in lowercase. If you write “Pass”, you’ll face an error like NameError: name Pass is not defined. Python … Continue reading PASS STATEMENT

WHAT IS PYTHON? WHAT ARE THE BENEFITS OF USING IT?

Python is among the fastest growing programming language today. There are more and more developers exploring python than ever before. Some of the python functionalities are brillant. It is one of the most successful interpreted language. When you write a python script, it doesn’t need to get compiled before execution. Few other interpreted languages are … Continue reading WHAT IS PYTHON? WHAT ARE THE BENEFITS OF USING IT?

Design a site like this with WordPress.com
Get started