Posts

Showing posts from March, 2013

Python Code : Address-book (Try it!!)

Image
Address-book This is self-explanatory. there's no need to describe what this code does, or is there.. Well, if you think so, then comment below and tell me what you don't understand. You are also welcome to e-mail me : lowleegeny@yahoo.com #----------------------------------------------------------- # Name      :       Addressbook.py # Purpose   :       Phone Book / Address Book # # Author    :       Mafanga Lolito (3138295) # # Created   :       13-March-2013 # Copyright :       (c) 2013 by Samdpix # Licence   :       wxWindows licence #------------------------------------------------------------ Numbers=[] Names=[] option =0 while True:     print "---------------------------------------"     option = raw_input("Enter the number of the Option you want:"+                 "\n----------------------------------------"+                 "\n| 1 | To Add Contact"+                "\n| 2 | To search for the Con

Python Code : LOTTO Machine

Image
LOTTO MACHINE PYTHON CODE A complete Python Code that generates lotto numbers and matches them with the user's. Note, I was too lazy to do the generator to not repeat the numbers generated into the list. Basically anyone can alter that to making it do the right thing. Just follow the exact steps that I used to make the user not to repeat the numbers, it should work the same way. This code is 100% working and it it completely mine and I give it to newbies in python to use it as practice (do not cheat, learn to code) this is just to show you how its done.  Find me on facebook : http://www.facebook.com/leander101 Or you can simply comment and subscribe. That's what she said... _________________________________________________________________________________ #----------------------------------------------------------- # Name :            CompleteLottoMachine.py # Purpose :         Play Lotto # # Author            Mafanga Lolito (3138295) # # Created