Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.59 KB

Various Other Helpful Things.md

File metadata and controls

30 lines (23 loc) · 1.59 KB

Various Other Helpful Things

This page is just a collection of useful resources that may help you

String Formatting
Using f""" to quickly concatenate variables into strings in a potentially easier manner

Importing Modules
Modules are imported using the syntax of import modulename or importing specific items from a module via from modulename import moduleitem.

For some modules that are not included with your Python installation, you may have to manually install them yourself via methods such as pip install tk for tkinter.

Importing Functions From Python Files
Looking to declutter your files, and move classes and functions into separate files? Good! Utilising imports from your own files can massively reduce clutter and make your code much more manageable.

It uses the same syntax as importing from Python Modules, just this time it is your own files, functions and classes being imported.

The Random Module
This particular module allows for the generation of random numbers. Really useful for generating quick sample data.

Plotting Via Matplotlib
For the purposes of plotting out data. This module allows for easy creation and display of plots of data. Particularly useful when attempting to perform data analysis