First of all you need to go to Pythons website: Python Programming Language – Official Website
Secondly you need to download Python so you can run it's code of course. Download Python
Here is something simple you can create in Python:
Code:
print'hello'
b = 'aasdfsadf' #Prints
print(b)
# Or you can do
b
# Is a comment
Now here is something I learned from a website in python you can import anywhere. For example
Code:
a = 'b'
c = 'a'
import ctypes
You can also create messageboxes in python.
Code:
import ctypes
MessageBox = ctypes.windll.user32.MessageBoxA # You have to use MessageBoxA!
MessageBox = (None, 'Hello', 'Python', 0) # Creates the messagebox
This is basic stuff as you know, now for the grand finale the simple array.
Code:
a = 'yes' #Variable
if a:
print a
print'yes'
print'no' #Prints variable a
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] #Array
if 8:
print'8'
print numbers #Prints the array
print'done' #Just my little finisher
The explanation is in the comments of the code (#).
Python is an object oriented programming language that is free of course it is nice and clean, I'm pretty sure many of you would like it if you gave it a try. I'm not sure why everybody always wants to try a language like c++ over Python, python is a pretty good language. And you know many interactive games are created by python.