
-----------------------------------
SS_198
Tue Jun 16, 2009 1:58 pm

Python,Part1
-----------------------------------
This isn' so much of a tutorial as a basic command structure for python.

I hope this little peice of information helps you out, i've been reading some python books and this is a bit of what i've learned so far using python.



How To Run Python Programs Via Cmd prompt
C:\program.pyc



Begin Python:

The first program we will learn the the "Hello World" program, basicly an output program.
There are 3 ways to do so, each with there benifits but ill edit more later to explain better.

Program1:
Dictionarys

Well To Store mass amount of information you can use dictionaries.
A dictionary file looks somewhat like this in python > 3.0.1

Program6: Dictionaries.
"Shopping List"

[code]
>>>p6 = {"Cookies":100, "Bread Stick": 5 , "Bags of Milk" : 2} # you #can keep adding stuff if u want just make sure Words are in #"qoutations".
#after the quotiontions you need to type : then the amount of stuff you #wish to buy(the number).

#Now To Delete an item from your list type the following.


>>>p6.pop("cookies")
>>p6
>>p6additems = {"Butter":2, "Cheese" : 3}
>>>p6.update(p6additems)
