Python

Python Interview Questions

Python interview questions are designed for freshers & experienced professionals to help to prepare for upcoming Python Interviews. Python Interview Questions Where is the math.py (socket.py, regex.py, etc.) source file? To quickly check where a module is located, import it and check the module’s __file__ attribute: >>> import math >>> math.__file__ ‘/usr/lib/python2.4/lib-dynload/math.so’ >>> import random …

Python Interview Questions Read More »

Python XML Processing

In this Python tutorial, we will discuss Python XML processing with program and examples. Introduction of XML Processing in Python The Extensible Markup Language (XML) is a markup language that is recommended by the World Wide Web Consortium and available as an open standard. XML is extremely helpful for keeping track of small to medium …

Python XML Processing Read More »

Python Tuples

In this Python tutorial, let us know about accessing values in tuples, updating tuples or remove elements in a Python tuple using the Python script with suitable examples. Introduction of Python tuples A tuple is a sequence of immutable Python objects like lists. The differences between tuples and lists are, the tuples cannot be changed …

Python Tuples Read More »

Python Sending Email

In this Python tutorial, let us discuss about sending an email using Python script with appropriate examples. Introduction of Python Sending Email Simple Mail Transfer Protocol (SMTP) is a protocol that handles sending and routing of e-mail between mail servers. Python gives the smtplib module, which defines an SMTP client session object that can be used to …

Python Sending Email Read More »

Python Networking

In this Python tutorial, let us understand the Networking – Socket Programming in Python. Introduction of Python Networking To access to network services, Python has two modes of operations. We can access the socket support in an operating system that allows implementing clients and servers for both connection and connection-less obligations. Sockets Sockets are the …

Python Networking Read More »

Python Multithreading

In this Python tutorial, let us discuss Python Multithreading with suitable examples. Introduction of Python Multithreading A thread has a beginning, an execution sequence, and a conclusion. It has an instruction pointer that keeps track of where within its context it, is currently running. It can be interrupted It can temporarily be put on hold …

Python Multithreading Read More »