CoreyMS

Development, Design, DIY, and more

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

Python: Slicing Lists and Strings

November 3, 2015 by Corey Schafer Leave a Comment

In this video we will look at how to slice lists and strings in Python. Slicing allows us to extract certain elements from these lists and strings. This can be extremely useful for stripping out certain values from lists or getting a substring of a characters from a string. Let’s take a look at a few code examples:

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

Setting up a Python Development Environment in Eclipse

November 3, 2015 by Corey Schafer Leave a Comment

In this video, we will be setting up a Python development environment in Eclipse using the PyDev plugin. If you’ve watched my videos before, you have likely noticed I use the Sublime Text text editor for the tutorials. I use this for videos because it is very clean and easy to use without all the bells and whistles of a full blown IDE. But there are times when an IDE is extremely useful. For example, if you need to debug your application, an IDE is likely what you would like to use.

There are several other options out there for Python IDEs. But Eclipse is free open source software. It can also be used to program in several other languages. Let’s go ahead and get started on setting up our Python dev environment in Eclipse:

Filed Under: Development, Python Tagged With: Computer Science, Development Environment, Eclipse, PyDev, Video

Ex Machina Easter Egg – Hidden Message within Movie’s Python Code

November 3, 2015 by Corey Schafer Leave a Comment

Sometimes when you’re watching a movie, you’ll see a flash of computer code pop up onto the screen. A lot of the time this is just gibberish. But sometimes there are hidden messages.

In the movie Ex Machina, some Python code flashes up on the screen. What happens if you actually execute this code on your computer? In this video we’ll give it a try:

Filed Under: Development, Python Tagged With: Computer Science, Easter Egg, Ex Machina, Movie, Video

Preparing for a Python Interview: 10 Things You Should Know

October 12, 2015 by Corey Schafer Leave a Comment

The interview process can be very intimidating. There seems to be so much material to study and it may be difficult even knowing where to start.

In this video, we will go over 10 different things you should know before going in to your first Python interview.

Here are a few links I mentioned in the video:

When to use a list or tuple?

My video on Comprehensions

My video on Generators

What is a T-Shaped Skillset?

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

Python: Comprehensions – How they work and why you should be using them

August 24, 2015 by Corey Schafer Leave a Comment

Python comprehensions are a very natural and easy way to create lists, dicts, and sets. They are also a great alternative to using maps and filters within python. If you are using maps, filters, or for loops to create your lists, then most likely you could and should be using comprehensions instead.

In this video, we will look at how comprehensions work, why you should be using them, and the benefits they have over the alternatives. Let’s get started.

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

Python: Generators – How to use them and the benefits you receive

August 18, 2015 by Corey Schafer Leave a Comment

Python Generators are often considered a somewhat advanced topic, but they are actually very easy to understand once you start using them on a regular basis. Actually, after you use generators for some time, you will often find them more readable and performant than other options.

In this video, we will look at what a python generator is, how and why we would use one, and the performance benefits they give us. Let’s get started.

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

Quickest and Easiest Way to Run a Local Web-Server

August 18, 2015 by Corey Schafer Leave a Comment

Running a local web-server to test a simple website is usually way harder than it has to be. In this video, we will look at a quick and simple way to run a local web-server without needing to download or configure anything. All you need is python (If you are on Mac or Linux, this is likely already installed). We will be using python’s SimpleHTTPServer. It’s literally as simple as navigating to your website folder and running the server. Let’s get started.

Command to run python’s SimpleHTTPServer on port 8000:

python -m SimpleHTTPServer 8000

Filed Under: Development, Python, Terminal Tagged With: Command Line, Computer Science, Programming, Server, Video

Python: Else Clauses on Loops

August 17, 2015 by Corey Schafer Leave a Comment

What does the ‘else’ clause mean when it comes after a for or while loop? This isn’t obvious at first glance, so let’s take a look at a few examples and clear up any confusion with the Python ‘else’ clause.

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

Python: Namedtuple – When and why should you use namedtuples?

August 17, 2015 by Corey Schafer Leave a Comment

Named Tuples in Python are High-performance container datatypes. What advantage do namedtuples have over regular tuples and when should you use them? In this video, we’ll take a look at namedtuples and why you should use them.

Filed Under: Development, Python Tagged With: Computer Science, Named Tuples, NamedTuples, Programming, Video

Python: What is the difference between str() and repr()?

August 17, 2015 by Corey Schafer Leave a Comment

A common question that pops up when dealing with python is: What is the difference between __str__() and __repr__()? It may not be obvious right off the bat, so let’s take an in-depth look at this.

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

  • « Previous Page
  • 1
  • …
  • 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