Ideas for simple programs to write in Python please

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 8K views
ecneicS
Messages
64
Reaction score
0
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!
 
Physics news on Phys.org
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
 
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.
 
ProjectEruler.net ?
 
flemmyd said:
ProjectEruler.net ?
I put that in my address bar and nothing came up. What is it?
 
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 :(