Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0

    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.
    Thanks
  2. #2
  3. A wanna-be guru of some sort
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2004
    Location
    Either online or offline
    Posts
    625
    Rep Power
    20
    Well, open up the terminal window and type the following:
    Code:
    ~> python
    Python 2.3.3 (#1, Apr 6 2004, 01:47:39)
    [GCC 3.3.3 (SuSE Linux)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> print "Hello, world!"
    Hello, world!
    >>>
    And that's the first step...

    Try reading this:
    http://www.ibiblio.org/obp/thinkCSpy/dist/thinkCSpy.pdf
    or
    http://diveintopython.org/toc/index.html
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0
    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???
  6. #4
  7. A wanna-be guru of some sort
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2004
    Location
    Either online or offline
    Posts
    625
    Rep Power
    20
    Dude, you can do almost anything in Python... Are you running it under Windows or UNIX?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0
    windows and like what type of thing do you mean "do anything in python"??? lol cool im excited now lol
  10. #6
  11. A wanna-be guru of some sort
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2004
    Location
    Either online or offline
    Posts
    625
    Rep Power
    20
    I mean almost anything... from GUI, XML, text processing, CGI, working with databases, even generating flash movies...
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0
    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
  14. #8
  15. A wanna-be guru of some sort
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2004
    Location
    Either online or offline
    Posts
    625
    Rep Power
    20
    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...
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0
    cool if you do plzz tell me i wanna learn it all lol
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    53
    Rep Power
    11
    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.
  20. #11
  21. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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

    Code:
    >>> someString = 'Welcome to the Python community Steve!'
    >>> someString
    'Welcome to the Python community Steve!'
    >>> someStringList = someString.split()
    >>> someStringList
    ['Welcome', 'to', 'the', 'Python', 'community', 'Steve!']
    >>> for eachElement in someStringList: print eachElement,
    ...
    Welcome to the Python community Steve!
    >>> for eachElement in someStringList: print eachElement
    ...
    Welcome
    to
    the
    Python
    community
    Steve!
    >>>
    Have fun,

    Mark.
    programming language development: www.netytan.com Hula

  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    34
    A simple Guess-The-Number game:

    Code:
    import random
    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 "Correct!"
        else:
            print "Too High!"
  24. #13
  25. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    7
    Rep Power
    0
    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
  26. #14
  27. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Location
    Bombay, India
    Posts
    159
    Rep Power
    12
    Steve,
    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!

    Rgds,
    Subha
  28. #15
  29. A wanna-be guru of some sort
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2004
    Location
    Either online or offline
    Posts
    625
    Rep Power
    20
    You could aslo visit http://aspn.activestate.com/ASPN/Python/Cookbook/ and check out the code samples to get a feeling of what you can do with Python.
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo