
Explore the Colab environment to run code without installation, using a Google account to create notebooks, connect to a server, and upload data while working with text and code cells.
Explore the Python x library to create, update, and extract information from Word documents. Build templates, write simple documents from scratch, and verify citations against references.
Learn to read content from Word documents using python-docx by accessing paragraphs and printing their text, demonstrating how to load, inspect, and iterate over document text.
Install the Python docx module, import the document class, create a document object, add a header and two paragraphs, and save the file.
Learn to create a docx with a header and three paragraphs, then insert page breaks between paragraphs using Pydocx in Python to place content on separate pages.
Explore how to set font type and size in runs using pydocx by creating a document, adding paragraphs, configuring runs with different font names and sizes, and saving the result.
In this second part, create a variable named order, sort the bibliographic references using the sorted function on the ref list, and insert the now sorted references into the document.
Learn how to shuffle multiple choice questions using a Python function, including creating a copy of questions, applying random.shuffle, and returning the shuffled list.
Use the pydocx library to create a Word document with shuffled questions and alternatives, then save the document.
Explore step-by-step regular expressions to identify eight citation styles, including author-year formats and et al, within parentheses, using the pipe operator to combine patterns.
Learn to extract citations from a Word document using the Pydocx library, including installing the Python X library, importing the document, parsing text and references, and printing citations.
Apply a simple compression-based approach to align citations with references, detect citations not present in the reference list, and output a Not Present list in Google Colab.
Develop a function to verify that references appear in the citation list, contrasting with checks for citations in the reference list, and test it on a sample Word document.
Use the pydocx library to extract citations and references from real documents, and verify that all citations appear in the reference list and that each reference is cited.
Master Python arithmetic, including addition, subtraction, multiplication, division, integer division, remainder, exponentiation, roots, and the math module, with emphasis on operator precedence and parentheses.
Study relational operators for comparing numbers and logical operators for combining true or false expressions, with examples of greater than, less than, and equal to.
Explain how while loops perform repetitive tasks by counting from one to ten and iterating over data structures, using pseudo code and a print of it's over.
Learn to create Python lists with square brackets, access and slice elements, check membership, find max and min, add and remove items with append and remove, and iterate over lists.
Develop and call functions in Python by defining function names, parameters, and return values; explore multiple and optional parameters, and apply to calculations such as gravitational potential energy.
Import the random module and explore functions like random(), randrange(), and choice to generate numbers, integers from a range, or select elements from a list.
Learn to handle errors and exceptions in Python with try and except, customize messages for invalid input, and control flow with else and break, value errors and zero division error.
Master Python regular expressions with the re module, focusing on search, match, and find all to locate patterns like phone numbers, emails, and car plates.
H! This course is designed to provide a comprehensive introduction to the Python-docx library, which allows users to create, modify, and extract information from Microsoft Word documents.
Throughout the course, you will learn how to use the library's various functions and classes to perform a wide range of operations, including creating and modifying tables, adding images and charts, and working with styles and templates. You will also learn how to extract information from documents, such as text, headings, and tables, and how to use this information in your Python scripts.
Overall, this course is suitable for beginner to intermediate Python developers who want to learn how to work with Word documents in Python. It covers a wide range of functionality and will give you a good starting point to build more advance tools and scripts.
By the end of the course, we have a module dedicated to basic aspects of the programming language Python, for those that have a beginner-level knowledge on it or those that want to review some concepts of the language.
Here are some elements featured in the course:
1. How to install the library
2. The basic structure of a Word document
3. How to create a document
4. How to save a document
5. How to set font size and type
6. How to add images to a document
7. How to change and add runs to a document
8. Exercises with their respective solutions
9. A miniproject to sort bibliographic references
10. A miniproject to create multiple versions of a multiple-choice text