Search TekSocial
Stay Connected

Enter your email address:

(We respect your privacy!)

Or subscribe with your favorite RSS Reader

  

Entries in python (5)

11:39AM

Programming with Python- def tags

Today we are going to be covering one of my favorite tags in python, the def tag. The best way to think of this tag is being able to give a single word a defined function. Unlike giving a variable a meaning, defining a word as a function gives you the option of giving two set variables equations. This may seem confusing at first, but let’s look at the code and see if I can explain it better.

Click to read more ...

8:19PM

Programming with Python- If's Elif's Else's 

In todays video we go over the basic principle of the If, elif, and else function in python. The best way to explain this in summary is to say that if one action happens, then this action happens. Elif (Or else that doesn’t end.) this action will happen; else (which is the ending statement) this action happens. Every if has to have an else. With out else the function will not work properly. There is no easy way to explain all this in code unless I show you what it means in code. For example:  

 

Click to read more ...

9:37PM

Programming with Python: Strings and Functions cont

In today’s video, we are going to be going over strings and variable again, just to make sure that you have the general idea down. I would like to remind those who watch these videos to type as I type and not to copy and paste everything in the videos. I am not a professional, but I find it easy to learn with a more hands on experience rather than a you see what you get. I would also like to remind you that if you have any further interest in learning python ahead of the videos, then please go check this great online book so that you can read ahead. That book again, is called Learning python the hard way: http://learnpythonthehardway.org/book/ Thanks for watching this series, and I hope you found it helpful in some kind of way.  

10:56AM

Programming with Python: Functions and Variables 

The title may make this lesson look like a scary mesh of gibberish to some of you. Not literally the title, but the general idea of what we are going to being working on today. But don’t worry; this isn’t a hard concept to get at all. So let’s get started on this lesson of programing with python. Firstly, we have to set up words to define. These words can be defined with both numbers and letters. What I mean by this is, we can have the word “Tom” equal “100” or for every time we have the function “print: Tom” we can have it print out the phrase “Is cool!” Sounds fun right? So, how do we achieve this? To put it quite simply, just as easy as I made it sound out to be. Look at the image below to get the idea of what the code will look like. 

Click to read more ...

4:06PM

Programming with Python: Print, Comment

Hello guys, today I am going to try my best to teach you some methods in programming. I am not a professional at this, but a guy who is learning it himself, but I figured by teaching others it would benefit them in some way while being able to me to get a review going on. So how are we going to do this? First, let me tell you what you will need. You’re going to need a text editor. No no, I don’t mean textedit or notepad. Here, you will need these.

(Mac) http://www.barebones.com/products/textwrangler/
(Windows)  http://notepad-plus-plus.org/

Now we are going to need the actual programing software itself. This will allow us to work with the python interface while being able to edit the code in the long run. Since we are starting with python, I suggest you download Python 2.7.5, as we will be working with that in this series.

Click to read more ...