Python

Free Interactive Python Tutorial
Variables and Types - Learn Python - Free Interactive Python Tutorial
Python is completely object oriented, and not "statically typed". You do not need to declare variables before using them, or declare their type. Every variable in Python is an object. This tutorial will go over a few basic types of variables. Numbers Python supports two types of numbers - integers and floating point numbers. To define an integer, use the following syntax: myint = 7 Execute Code To define a floating point number, you may use one of the following notations: myfloat = 7.0 myfloat = float(7) Strings Strings are defined either with a single quote or a double quotes. mystring = 'hello' mystring = "hello" The difference between the two is that using double quotes makes it easy to include apostrophes (whereas these would terminate the string if using single quotes) mystring = "Don't worry about apostrophes" There are additional variations on defining strings that make it easier to include things such as carriage returns, backslashes and Unicode characters. a, b = 3, 4 # This will not work!
Python game development
IronPython.net Open Source
Online Python Tutor - Learn programming by visualizing code execution
Related:
Related: