Tag Archives: Python How to

Python 2.7 Tutorial Pt 4

Python 2.7 TutorialI continue the Python 2.7 Tutorial by explaining a couple new things. I first go over how to turn your Python code into an executable application.

I then cover Python Conditionals. Conditionals are used to perform certain actions under one condition and other actions based on other conditions. In Python you can do this either with an IF Statement, or with something called a Conditional Expression.

Like always, the code follows the video. If you have any questions or comments leave them below. And, if you missed my other Python Tutorials they are available here:

Continue reading Python 2.7 Tutorial Pt 4

Python 2.7 Tutorial Pt 3

PythonIn part 3 of my Python 2.7 Tutorial, I explain how to use the Dictionary, Print method and how to work with String methods.

If you haven’t seen part 1 or 2 definitely look at them first or you’ll be very confused Python 2.7 Tutorial Part 1 and Python 2.7 Tutorial Part 2.

All of the code I use in these tutorials follow the video and can be used however you’d like.

If you have any questions or comments leave them below.

Continue reading Python 2.7 Tutorial Pt 3

Python 2.7 Tutorial

Python How ToI asked you guys what video I should do next, and based on your votes you wanted a Python 2.7 Tutorial! Because of the tremendous interest, I will be rolling out a Massive tutorial for Python. I actually did one on Python 3.0 if you want that instead though. Here it is Python How to Video Part 1.

The tools I use in this tutorial include the Eclipse IDE and Pydev. I document how to install them in the video below, but also in this article Free IDE.

Now on with the video. All of this code will work with Python 2.5 thru 2.7. The code will follow the video. If you have any questions or comments leave them below. Here is all the code from the entire tutorial in a zip archive.

Continue reading Python 2.7 Tutorial

Create Automated Websites with Python

Make a Website Video TutorialI while back I showed you how to Make Money Blogging by setting up a simple automated WordPress blog using WP-O-Matic. I was then asked for an automated site that allowed for more robust article grabbing.

In the video below I show you how to grab content from any website and then send that to the Postie WordPress Plugin, that will post it to your site automatically. Here is an article on How to Use Postie.

Continue reading Create Automated Websites with Python

Python How To Video Pt 6

Python How ToThis article and video was created because of the requests from Gent2910 and others. You guys have been having problems understanding a few concepts with Python. Specifically you’ve asked for:

  • More examples on unconventional uses for functions
  • Examples on using lists
  • Explanation on how to use elif
  • More on Conditional Expressions
  • How to catch errors, or Python Error Handling

Continue reading Python How To Video Pt 6

Python How To Video Pt 5

Python PictureIn this video, I completely cover how Object Oriented Programming (OOP) works in Python. This is also how it works in other OOP languages though.

Inheritance, Polymorphism, Classes and Objects are jargon terms specific to the concept of programming in OOP. These concepts do not change based off of the language you use.

All of the code from the video, follows after the video below. If you haven’t watched the other video’s, watch them first or you will be confused.

Like always, if you have any questions or comments, leave them in the comment section below.

Continue reading Python How To Video Pt 5

Python How To Video Pt 4

Python How ToIn this article and video, I’ll show you how to read and write to files using the Python programming language.

If you didn’t watch part one definitely watch Python How to Program Part 1 first!

In this video, I also use the Eclipse IDE for coding, instead of IDLE. If you want to know how to install it (It’s Free), watch this tutorial Eclipse The Free IDE.

If you have any questions leave them in the comment section below.

The code from the video tutorial can be found on this page, after the video.

Continue reading Python How To Video Pt 4

Python How To Program Pt 3

PythonIn this video I cover how to use the list data types in Python (tuples, lists, dictionary’s).

I also review and introduce the While Loop, If then Elif, and a bunch of tricks with Python. All of the code from the video follows the video on this page. If you didn’t watch part 1 of this tutorial watch it here: Python How To Program

If you have any questions or comments, leave them in the comment section below.

NOTE: At the end of the video, I say I don’t know the topic of the next video. It will be on Object Oriented Programming with Python.

Continue reading Python How To Program Pt 3

Python How to Video Pt 2

Python PictureHere I continue my Python How to Program Tutorials. If you missed part 1, go watch Python How to Program Pt 1.

In this video tutorial, I’ll cover the integer and string variable types. I’ll also go over all of the different functions available to you for manipulating integers and strings in Python.

All of the code used, can be found after the video. If you have any questions or comments, leave them in the comment section below.

Continue reading Python How to Video Pt 2

Python How to Video Pt 1

Python How ToIf you have ever wanted to learn how to program a computer, this is the tutorial for you. I walk you step-by-step through how to do anything with Python.

Everything you can do with Python will be covered. You can watch over my shoulder as I teach programming, based off of your requests. I asked you guys what you wanted and you said:

Continue reading Python How to Video Pt 1

Python How To : Examples

Python How ToI’ve received a bunch of email’s requesting that I provide more sample Python code. Some people learn better by seeing somebody work through examples. So, here I’ll work through some simple to understand examples that should teach you a bunch about Python.

Note: They will start out simple and work up to file I/O (Reading and Writing to files)

Continue reading Python How To : Examples

Python How To : Functions and Exceptions

Python PictureHere I’ll go over a bunch more on Python. If you haven’t seen Part 1 of the Python How To Program Tutorial, read it first.

In this article I’ll cover functions, exception handling and general file i/o. I’ve read your comments, and yes I will be providing a bunch of Python sample programs and videos. They may already be done actually. Check the right side bar on this site where it says categories, click on Python How to. That will display every Python article. Well on with the article.

Continue reading Python How To : Functions and Exceptions

Python How to Built in Functions Pt 4

PythonThere are numerous built in functions and library modules in Python. Definitely more than I can cover in one article, but I will go over many of them today.

I’ll specifically cover the most commonly used functions pertaining to mathematical operations and string manipulation. All also throw in some random issues that are sure to come up.

Continue reading Python How to Built in Functions Pt 4

Python How to Conditionals & Loops Pt 3

Python How ToWelcome to Part 3 of my Python How to Program tutorial. If you haven’t seen the other tutorials, check them out first Python How to Program : Tools Needed and Python How to Program Data Types.

In this article, I’ll be covering Conditionals (IF and Conditional Expression) and Loops (FOR and WHILE). Once again Python does things a little differently from other languages. And, while Python doesn’t include a switch statement for performing Conditionals, I’ll show you how to create one as well.

Continue reading Python How to Conditionals & Loops Pt 3

Python How to Basics Pt 2

Python PictureWelcome to Part 2 of the Python How to Program series. I’m going to mainly focus on variable types specific to Python in this article. I also will go over many basic topics that make Python different than any other programming langauge.

How Python Handles White Space

If you have programmed in other languages, you are probably used to enclosing your code between brackets { }. Python instead separates it’s code segments through the use of white space. So if you where creating a function in Python you would indent all of the code that lies in that function (normally 4 spaces).

Continue reading Python How to Basics Pt 2

Python How to Program Tutorial Pt 1

Python How ToWelcome to the Python How to Program Tutorial. In a long series of articles, I will answer all of your Python questions. I’ve chosen to cover Python because I’ve received many requests pertaining to learning how to program with Python. I’ve also chosen to finally finish my automated website program with Python. By the end of this tutorial you’ll be able to:

Continue reading Python How to Program Tutorial Pt 1