Python Slice Example
1. Slice List. Taking a partial element from a list or tuple is a very common operation. For example, how to take the first three elements from below list? >>> L = [‘Richard’, ‘Tom’, ‘Jerry’, ‘Jackie’, ‘Kevin’] You can take elements from above list like below. >>> [L[0], L[1], L[2]] [‘Richard’, ‘Tom’, ‘Jerry’] But when you …
Python Django Model Example
Model is generally used to represent database table data. It contains the basic fields and behaviors of the data you are storing. Django provides structured data processing and operation processing for your network applications through the abstract model layer (models). Database-related code is generally written in models.py. Django supports SQLite3, MySQL, PostgreSQL and other databases, …
Python Access SQLite Database Example
SQLite is an embedded database which store all database data in a file. Because SQLite itself is written in C and small in size, it is often integrated into various applications, such as iOS and Android Apps. Python has built-in SQLite3 support, so you don’t need to install anything to use SQLite in Python.
Python Use Pop3 To Read Email Example
To receive an email you can write an MUA( Mail User Agent ) as the client, and retrieve the email from MDA ( Mail Delivery Agent ) to the user’s computer or mobile phone. The most commonly used protocol for receiving mail is the POP protocol. The current version number is 3, commonly known as …
Python Send Html, Image And Attachment Email Example
In the last article Python SMTP Send Email Example we had learned how the email transfer from the internet to the receiver’s email address, we have also learned the basic source code to send email to the SMTP server in the Python program. In this article, we will tell you how to send more complex …
Python Send Html, Image And Attachment Email Example Read More »