Programming Tutorials

Python Tutorials

1. Python program to get location meta data from an image

By: Manoj : 2023-03-17

Description: Here is the Python program to get location metadata from an image using the exifread library in Python.


2. Retrieve Twitter posts and comments using Python

By: Queency : 2023-03-17

Description: Here's some sample Python code that uses the Twitter API to collect tweets and replies and saves them in a dataset:


3. How to install Jupyter in Ubuntu and make it accessible through Apache Reverse Proxy

By: Suresh : 2019-02-23

Description: Jupyter Notebooks have become the defacto standard for data scientists to show case their research and machine learning algorithms and work for presentation and sharing with others. Here we can see how to make Jupyter Notebooks to be accessed over internet from our server.


4. python dictionary

By: Ashley J : 2017-09-28

Description: An item in a dictionary is a key/value pair. You can think of a dictionary as an associative array (known in some other languages as an "unordered map," "hash table," or "hash"). Keys in a dictionary may be of different types, but they must be hashable. Values in a dictionary are arbitrary objects and may be of any type.


5. python string

By: Ashley J : 2017-09-27

Description: Python String objects (byte strings, as well as text, AKA Unicode, ones) are immutable: attempting to rebind or delete an item or slice of a string will raise an exception. The items of a string object (corresponding to each of the characters in the string) are themselves strings of the same kind, each of length 1.


6. python list

By: Ashley J : 2017-09-27

Description: A Python list is a mutable ordered sequence of items. The items of a list are arbitrary objects and may be of different types. To denote a list, use a series of expressions (the items of the list) separated by commas (,), within square brackets ([]); if every item is a literal, the whole assembly is a list literal. You may optionally place a redundant comma after the last item. To denote an empty list, use an empty pair of brackets


7. python with

By: Ashley J : 2017-09-27

Description: Python with statement is used when you want to execute a block of code based on another operation. For example you need to open a file, for manipulating the file, then close it after you have worked with the file. In this case, python with is used to make sure that the file is closed after processing the file.


8. python if

By: Ashley J : 2017-09-27

Description: Often, you need to execute some statements only when some condition is true. Or in some cases you would need to execure different blocks of code based on a condition. The compound statement if —comprising if, elif, and else clauses—lets you conditionally execute blocks of statements.


9. python while

By: Ashley J : 2017-09-27

Description: Python while statement repeats execution of a statement or block of statements, until the loop condition is true. Once the loop body finishes executing, Python evaluates the loop condition again from the top to check whether another iteration should execute. This process continues until the loop condition is false, at which point the while statement ends.


10. python for

By: Ashley J : 2017-09-27

Description: Python for statement repeats execution of a statement, or block of statements, controlled by an iterable expression. The statement or statements that make up the loop body execute once for each item in iterable (unless the loop ends because of an exception or a break or return statement)