This is a personal record of my python programming experiences. It will allow me to see how I am progressing as I learn a new language.
Wednesday, August 11, 2010
I used string formating to write the data to the file!
I have improved on my gas mileage GUI program, by writing text to a file using string formatting. I was just writing the variable to the file, but would add extra stuff I didn't want to the file. String formatting is a much better way to write data. It took me awhile to figure out this simple concept! Also, I added a button that will list the text file using a for loop. The for loop is a very nice way to list lines in a file.
Saturday, August 7, 2010
Run python from a bash shell in Linux.
I have not written any code for a long time, so I had to relearn some basic stuff. I refer back to my python blog to get myself back up to speed. I wrote a very simple gas mileage calculator (again) to get me jump started. Having a blog is a great way to get back some of the programming skills I learned. What is neat about python programming in Linux is that I can run my program by typing "python
Subscribe to:
Comments (Atom)
Followers
Blog Archive
- June (1)
- March (3)
- February (1)
- July (3)
- May (1)
- April (1)
- March (1)
- January (1)
- December (1)
- November (4)
- July (3)
- May (2)
- April (1)
- March (6)
- February (2)
- December (1)
- November (1)
- September (3)
- August (3)
- July (1)
- March (3)
- January (1)
- December (5)
- November (2)
- October (1)
- September (2)
- August (1)
- July (4)
- May (3)
- February (1)
- January (1)
- December (1)
- November (2)
- October (2)
- September (9)
- August (2)
- May (1)
- April (1)
- March (6)
- February (5)
- January (3)
- August (2)

