Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Ideas for simple programs to write in Python please

  1. Aug 2, 2011 #1
    I currently have little experience in programming and would like to improve my skills. The most complex program I've made so far has been a definite integral calculator that uses either right handed or left handed riemann sums to approximate the definite integral (although it fails to be accurate where functions tend off to infinite). I was wondering if anyone had any good ideas for some programs that are around my skill level. Thanks!
  2. jcsd
  3. Aug 2, 2011 #2
    I will just list two very important skills to have for any sort of scientific use of python:

    Write a program that can read in data from a file and do some operation with it, and print it out to a file. (very useful skill!)

    Get matplotlib and make pretty graphs with Python
  4. Aug 2, 2011 #3
    you could look up the "huffman tree algorithm" and write a file compressor program for relatively small programs. I did this as an assignment for one of my classes with python, it was fun.
  5. Aug 2, 2011 #4
    ProjectEruler.net ?
  6. Aug 2, 2011 #5
    I put that in my address bar and nothing came up. What is it?
  7. Aug 2, 2011 #6
  8. Aug 2, 2011 #7
    projecteuler can be fun, but this is awesome: http://www.pythonchallenge.com ! ( the project euler link reminded me of this site, it gets progressively harder )
    there's a harder version out there somewhere, that is less dependent on using python specifically ( for example, one exercise in pythonchallenge.com requires you to know about the Ord() function in python ), but I don't remember the name :(
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook