In this Python tutorial, we will cover the basics of the IPv4 and IPv6 IP addresses. In order to validate an IP address, one must know exactly what an IP address is, but more importantly, know the difference between Internet Protocol version 4 (IPv4) and the Internet Protocol version 6…
John Wingate
- Python Scripting
How to Handle Exceptions and Raise Exception Values in Python
by John Wingateby John WingateIn this Python tutorial, we will learn how to handle exceptions and raise exception values in Python. A few types of errors and exceptions we will cover are syntax errors, handling exceptions, and raising exceptions. The ability to hand exceptions and errors when creating a Python program is very important…
- Python Scripting
Rock-Paper-Scissors Game with Python Objects, Functions and Loops
by John Wingateby John WingateIn this Python tutorial, we will create a rock, paper, scissors game with a virtual player. The game will cover Python topics such as class objects, defining functions, if statements, and loops. At the end of each game session, the user will be able to continue to play the game…
Python Exercise 19 Problem: In this Python exercise, write a Python program that will take the input from a user to move a robot around a room that will start from the original point of (0,0). The robot has the ability to move FORWARD, BACK, LEFT and RIGHT. The first…
- Python Scripting
Python Server and Client Socket Connection Sending Data Example
by John Wingateby John WingateA Python server and client socket connection is a two-way communication link that are running on a network. This is known as a network socket and can be on the same system or different systems that are connected to a network. Both the server and client communicate with each other…