CoreyMS

Development, Design, DIY, and more

  • Contact
  • Portfolio
  • Development
    • Python
    • Git
    • Terminal
    • JavaScript
    • WordPress
  • Design
    • CSS
  • DIY
    • Woodworking
    • Home Improvement
  • Contributors
  • Support
  • Giveaway

Python Tutorial: File Objects – Reading and Writing to Files

May 1, 2016 by Corey Schafer Leave a Comment

In this Python Tutorial, we will be learning how to read and write to files. You will likely come into contact with file objects at some point while using Python, so knowing how to read and write from them is extremely important. We will learn how to read and write from simple text files, open multiple files at once, and also how to copy image binary files. Let’s get started.

Filed Under: Python Tagged With: Computer Science, File IO, Programming, Video

Python Tutorial: OS Module – Use Underlying Operating System Functionality

April 8, 2016 by Corey Schafer Leave a Comment

In this Python Tutorial, we will be going over the ‘os’ module. The os module allows us to access functionality of the underlying operating system. So we can perform tasks such as: navigate the file system, obtain file information, rename files, search directory trees, fetch environment variables, and many other operations. We will cover a lot of what the os module has to offer in this tutorial, so let’s get started.

Filed Under: Python Tagged With: Module, OS, OS Module, Programming, Video

Python Tutorial: Decorators – Dynamically Alter The Functionality Of Your Functions

April 8, 2016 by Corey Schafer Leave a Comment

In this Python tutorial, we will be learning about decorators. Decorators are a way to dynamically alter the functionality of your functions. So for example, if you wanted to log information when a function is run, you could use a decorator to add this functionality without modifying the source code of your original function. So let’s take a look at how these decorators work and a few ways in which we can use them. Let’s get started.

Filed Under: Python Tagged With: Decorators, Programming, Video

Python Tutorial: String Formatting – Advanced Operations for Dicts, Lists, Numbers, and Dates

April 8, 2016 by Corey Schafer Leave a Comment

In this Python tutorial, we will be learning how to perform some advanced string formatting operations. Formatting our strings allows us to display our information in exactly the way we would like it to be displayed. Everyone, in almost all areas of Python programming, comes across a situation where they need to format a data type in a specific way. Let’s get started.

Filed Under: Python Tagged With: Programming, String Formatting, Video

Python Tutorial: Custom Sublime Text Build Systems

April 8, 2016 by Corey Schafer Leave a Comment

In this video we will be learning how to create multiple build systems within Sublime Text. This is useful if you have projects which require you to switch between Python 2 and Python 3, or if you’d like to customize your default Python build system. Let’s get started.

Filed Under: Python Tagged With: Development Environment, Programming, Video

Python Tutorial: Duck Typing and Asking Forgiveness, Not Permission (EAFP)

March 8, 2016 by Corey Schafer Leave a Comment

In this Python Tutorial, we will look at a couple of the aspects of being “Pythonic”. If you’ve never heard the term Pythonic before, basically it means that you are following conventions and coding styles of the Python language in order to write clean and readable code.

In this video we’ll specifically be looking at two aspects of being Pythonic, and those are “Duck Typing” and the concept that it is easier to ask forgiveness than permission (EAFP). Let’s get started:

Filed Under: Development, Python Tagged With: Computer Science, Duck Typing, EAFP, Programming, Pythonic, Video

Python Tutorial: Automate Parsing and Renaming of Multiple Files

February 5, 2016 by Corey Schafer 1 Comment

In this video we will be writing a quick script to automate the parsing and renaming of multiple files. Writing quick scripts to automate boring and repetitive tasks is a great way to learn Python and it is a great way to save time. Let’s get started:

Filed Under: Development, Python Tagged With: Automation, Computer Science, Files, Parsing, Programming, Video

Python Tutorial: Sorting Lists, Tuples, and Objects

February 5, 2016 by Corey Schafer Leave a Comment

In this video we will be learning how to sort lists, tuples, and other objects in Python. We will start by performing simple sorts on a list of integers and then move on to slightly more advanced sorting using custom criteria. Let’s get started:

Filed Under: Development, Python Tagged With: Computer Science, Programming, Sorting, Video

Python Tutorial: Image Manipulation with Pillow

February 5, 2016 by Corey Schafer 1 Comment

In this video we will learn how to modify and manipulate images using the Python Pillow Library. Pillow is a fork of the Python Imaging Library (PIL). It will allow us to do many different things to our images such as: changing their file extension, resizing, cropping, changing colors, blurring, and much more.

Pillow is extremely useful when you have multiple images you wish to process at once. For example, you can use Pillow to automatically create different sized thumbnails of images you upload to your web server. Let’s get started:

Filed Under: Development, Python Tagged With: Computer Science, Images, Pillow, Programming, Video

Python Tutorial: Using Try/Except Blocks for Error Handling

February 5, 2016 by Corey Schafer Leave a Comment

We’ve all run into errors and exceptions while writing Python programs. In this video, we will learn how we can handle exceptions in specific ways and also look at the control flow of a try/except/else/finally statement. Understanding how to properly handle errors will provide us with the tools to make better software in the future. Let’s get started:

Filed Under: Development, Python Tagged With: Computer Science, Exception Handling, Programming, Video

  • « Previous Page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • Next Page »

Main Contributor

  • Andre Nevares

Top Contributors (17)

  • Andre Nevares
  • Cyril Hediger
  • Abhilash Rajan
  • Hien Nguyen
  • Alan Hawse – iotexpert.com
  • Just a Guy
  • Alex Canady
  • Sergey Trubin
  • Justin Presley
  • Sirake
  • chris
  • Jerome Massey
  • Robert Butler
  • Jonathan Llovet
  • David Myers
  • Karthik
  • Michael Zoitas

Thank You! If you would like to have your name listed as a contributor and support the website, you can do so through my Patreon Page. I am extremely grateful for any support.

Search CoreyMS.com

Subscribe to Future Posts

Recommended Books

Podcasts I Listen To

Tech Related:
Talk Python To Me
Shoptalk Show
Software Engineering Radio
HanselMinutes
CodePen Radio

Non-Tech Related:
Dan Carlin's Hardcore History
Bill Burr's Monday Morning Podcast
Waking Up with Sam Harris
StarTalk Radio
Talk Nerdy with Cara Santa Maria

© 2023 · CoreyMS · Corey Schafer