November 20th, 2004, 06:08 PM
Im A Newbie PLZ I WANT TO LEARN
Hi i have downloaded Python 2.3.4 and have tryed reading the tutorial that was with it but it just seemed really hard and i couldnt really find what i wanted to know on there. Im completely new at programing i dont know anything, if someone could help me i would be really thankful.
November 20th, 2004, 08:17 PM
November 20th, 2004, 08:28 PM
cool thanks, thats acctually cool lol, i could sit there for hours doing that lol, but im sure you could do other stuff with it?? i dont mean to be pushy, but do you know any other more advanteds things to do???
November 20th, 2004, 08:34 PM
Dude, you can do almost anything in Python... Are you running it under Windows or UNIX?
November 20th, 2004, 08:41 PM
windows and like what type of thing do you mean "do anything in python"??? lol cool im excited now lol
November 20th, 2004, 08:48 PM
I mean almost anything... from GUI, XML, text processing, CGI, working with databases, even generating flash movies...
November 20th, 2004, 08:55 PM
oh cool well i guess so lol, i dunno what half them are lol. cool so is it still good on windows or is linux better?? i saw somone say pythons better on linux on a google search somewhere but i cant remember if im right lol
November 21st, 2004, 12:11 AM
Well, I dunno, I use it under Linux, and it's good enough for me... I will download the Windows version one of these days...
November 21st, 2004, 05:48 AM
cool if you do plzz tell me i wanna learn it all lol
November 21st, 2004, 11:49 AM
you can do the same things basically on any platform. that's one of the really cool things about python is that code written on one platform can usually just be brought over to another platform and used without any changes.
November 21st, 2004, 03:08 PM
Yes, we all agree Pythons an amazing language . But tell us what you want to with it and we'll see what we can do to help i.e. heres an example that splits a string and loops though it's elements
>>> someString = 'Welcome to the Python community Steve!'
'Welcome to the Python community Steve!'
>>> someStringList = someString.split()
['Welcome', 'to', 'the', 'Python', 'community', 'Steve!']
>>> for eachElement in someStringList: print eachElement,
Welcome to the Python community Steve!
>>> for eachElement in someStringList: print eachElement
November 21st, 2004, 05:41 PM
A simple Guess-The-Number game:
unknown = random.randint(1, 100)
user_guess = 0
while not user_guess == unknown:
user_guess = input("Guess the number between 1 and 100: ")
if user_guess < unknown:
print "Too low!"
elif user_guess == unknown:
print "Too High!"
November 21st, 2004, 06:33 PM
hi netytan and sfb thank you for replying to me. the reason i want to learn python is cos i was board and it seemed like a good idea but now it has really attached to me and i am really ancshos to learn, tho i did read somewhere else that you can get hacked or somthing like that if you use it tho im not shore if i read it right lol, but thanks for them bits of commands i tryed them out and were good thanks for helping me tho if you can plzz try and help me some more, lol thanks
November 22nd, 2004, 12:16 AM
You cld visit this site http://www.byteofpython.info/ ...the book is named A Byte of Python by Swaroop CH .... its a really nice book for beginners...try it out... and with simple examples!
November 22nd, 2004, 12:32 PM