February 18, 2009

Making Variables:


----------------------------------------------------------------------------------
>>>the = 1
>>>if the:
... print("hello")
...
hello

----------------------------------------------------------------------------------
i defined the variable "the" to equal 1
>>> the = 1
then i created an "if" statement
if the:
then i defined what would happen "if" "the" equaled 1
print("hello")



February 15, 2009

Basic python syntax:


print("text to print\n")
text to print

print  = the command
()    = the arguments for the command
" "       = input
\n       = new line