Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Sunday, May 18, 2014

Basic Python Data Types

Here are some basic python types to play around with in the interpreter.

String = 'string' or "String"
Integer = 1
List = ['I','am','a','list','of','strings'] *A list of strings*
List = [0,1,2,3,4] *A list of numbers*
Dictionary = {'key':value, 'kobe':24,'jordan':'mike'}
Variable = 'variable'
Boolean = True or False

Friday, May 16, 2014

Python Hello World

Welcome to programming python. I'm a huge fan of the python programming language for a few reasons. First it's a very beautiful language that's very easy on the eyes. It has a shorter learning curve than some other languages such as C or Java. It is almost the go to language for beginners and on that note lets get started with the most simple program you can write a 'Hello World' program.

Once you have python downloaded and installed on your computer (most linux distros come with python already installed) open it up.

Now type into the interpreter with the quotation marks 'Hello World'. The interpeter should say 'Hello World' now congratulations you've written your first program!