Intro:
Python is a high-level object oriented interpreted programming language.
A simple app:
In every programming language is best to start creating a basic app, this app is usually a hello world and in python it can be as simple as:
Code: Select all
print "Hello World"Strings and integers:
In python there are strings and there are integers, a string uses double quotes or single quote:
Code: Select all
print "Hello World"
print 'Hello World'Integers don't use any type of quotation:
Code: Select all
print 1Code: Select all
print 1+1Code: Select all
print "1"+"1"Code: Select all
print "hello"+"world"It is important to know that you can't add (+) a string and an integer:
Code: Select all
print 1 + "hello"Code: Select all
TypeError: unsupported operand type(s) for +: 'int' and 'str'Code: Select all
print str(1) + "hello"Next up: variables.
Stay tuned for more on this crazy sitcom.
Next: viewtopic.php?f=37&t=11843


