Python project suggestions, anyone?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Loismustdie129
    New Member
    • Aug 2006
    • 194

    Python project suggestions, anyone?

    I am getting lazy here. I need something to do for Python to continue my education.

    If anyone has any suggestions for a project I could undertake that would be great. I have no idea what to do, what to program or what I want it to do. If anyone has just a few suggestions (or one) that would just be great and I would greatly appreciate it.
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by Loismustdie129
    I am getting lazy here. I need something to do for Python to continue my education.

    If anyone has any suggestions for a project I could undertake that would be great. I have no idea what to do, what to program or what I want it to do. If anyone has just a few suggestions (or one) that would just be great and I would greatly appreciate it.
    My favorite projects for learning a language and algorithms are translators.
    Types of translators in this context are
    compilers
    interpreters
    assemblers
    anything that takes one form of code and converts it into another useful form.

    for example, given some text:
    Code:
    """a = 1
       b = 2
       c = a + b"""
    write a program to determine the value of c (without using eval() or exec()).

    At this point it is fair to use print to get the output.

    I've written an assembler (converts from assembly language to machine code) and I've always wanted to play with writing an interpreter as outlined above.
    What do you think of that?

    Comment

    • Loismustdie129
      New Member
      • Aug 2006
      • 194

      #3
      That is pretty good. I will look into doing that.

      Comment

      • dshimer
        Recognized Expert New Member
        • Dec 2006
        • 136

        #4
        A project I did as an exercise that eventually became very helpful was.

        1) Write my own html creation module, that worked exactly the way I wanted, doing the things I needed most often in the easiest way.
        2) Analyze my old source code for tendencies, and clean up or change where necessary to make them consistent.
        3) Create a program that parses my programs and makes them self documenting, creating a html file for each program. Color coding, reading docstrings and comments, including dependencies and internal functions, etc. Then making a master index with a short description and link to the individual pages.

        We pass around a lot of code here, and this way I can give co-workers not only the scripts, but the documentation at the same time.

        Comment

        • Loismustdie129
          New Member
          • Aug 2006
          • 194

          #5
          That sounds like a good idea too. I guess I will take them on as they came to me here.

          Comment

          • dshimer
            Recognized Expert New Member
            • Dec 2006
            • 136

            #6
            Another thing I thought of was playing with PIL. I don't know if you have any interest in imagery, or have played with PIL before, but digital images are a part of my job and not only was PIL a blast to tinker with but I got some very useful programs in the end.

            Comment

            • samme
              New Member
              • Feb 2007
              • 1

              #7
              another thing you might want to look at is python challenge,
              http://www.pythonchall enge.com/
              "The first programming riddle on the net"

              Comment

              Working...