Modules in python featured image

Importing Modules in Python 3: A Comprehensive Guide

Introduction Most of us are familiar with Python as a programming language. One of the great things about Python 3 is the myriad of built-in functions it offers. You get access to these functions when you are using Python 3 to write different types of code. Before we start, take a look at our tutorial on installing Python 3 and …

Python 3 objects and classes featured image

Programming with Python 3: How To Go About Constructing Classes and Defining Objects?

Introduction We all know about Python as a programming language. To be more specific, Python is an object-oriented programming language. In object-oriented programming, or OOP, the goal is to make reusable code patterns. This is different from procedural programming where we give a sequence of instructions. Object-oriented code is especially useful when you are working on complex programs. When you …

How to Crawl a Web Page with Scrapy and Python 3

Web scraping, web crawling, web harvesting, or web data extraction are synonyms referring to the act of mining data from web pages across the Internet. Web scrapers or web crawlers are tools that go over web pages programmatically extracting the required data. These data, which is usually large sets of text can be used for analytical purposes, to understand products, …

Python features image

Using Python 3 String Formatters

Introduction The str.format() method in the string class of Python lets you do a variety of value formatting and substitution. Positional formatting and concatenation of elements within a string are done using string formatters in Python 3. In this tutorial, you will learn about the common uses of string formatters in Python. Formatting the strings will help you write more …

How To Convert Data Types in Python 3

Python 3: A Guide on Converting Data Types

Introduction Python is a programming language that is often used for system integration purposes. This language uses something called ‘data types’. These data types help classify or define a given type of data. This means that a particular data type pertains to specific values and operations that you can apply to it. Each data type is programmed and edited in …

Loops in Python 3 featured image

Loops in Python 3: Using Break, Continue, and Pass Statements

Introduction There are two types of loops that you can employ in Python 3. You have for loops and while loops. You can use them for repeat tasks. As a result, the repetitive tasks will happen automatically, making the process more efficient. Unfortunately, your loops can encounter some problems. At times, your program may run into an issue where you …

setting up python featured image

Installing Python 3 and Setting up a Local Programming Environment on Ubuntu 16.04

Introduction Python is an interactive, object-oriented, and simple programming language which can be used for a plethora of different programming projects. A fun fact is that Python is not named after the python snake but after the comedy television show Monty Python’s Flying Circus. Python is a great language to get started with programming and a great choice for experienced …