Python

Python - Get IP Address from Hostname — step-by-step Python tutorial on Progressive Robot

Python – Get IP Address from Hostname

URL: https://www.progressiverobot.com/python-get-ip-address-from-hostname/ [Python socket module](/community/tutorials/python-socket-programming-server-client) can be used to get the IP address from a hostname. The socket module is part of the Python core libraries, so we don't need to install it separately. Python Socket Module to Get IP Address from Hostname Python socket module gethostbyname() function accepts hostname argument and returns the IP […]

Read more
How To Port Python 2 Code to Python 3 — step-by-step Python tutorial on Progressive Robot

How To Port Python 2 Code to Python 3

This tutorial will guide you through best practices and considerations to make when migrating code from Python 2 to Python 3, and whether you should maintain code that is compatible with both versions.

Read more
How To Work with the Python Interactive Console — step-by-step Python tutorial on Progressive Robot

How To Work with the Python Interactive Console

This tutorial will go over how to work with the Python interactive console and leverage it as a programming tool. Providing access to all of Python’s built-in functions and any installed modules, command history, and auto-completion, the interactive console offers the opportunity to explore Python and the ability to paste code into programming files when you are ready.

Read more
How To Build a Weather App in Django — step-by-step Python tutorial on Progressive Robot

How To Build a Weather App in Django

In this article, you will build a simple Django app that displays the current weather for various cities. To get the current weather data, you will use the Open Weather Map API. You will work with a database and create a form, so the concepts used here are applicable to more complicated projects.

Read more
CHAT