I'm Brie, a 22 year-old graduate of Slippery Rock University's Computer Science department. My interests include Linux (generally and Ubuntu), networking, BSD-style operating systems including my own, BrieSD, translating English-Spanish-English for open source projects and LAMP configuration. Aside from that, I enjoy photography, making short films and soccer.
Posterous is one of my favorite new(ish) web sites!
brie@briegordon.com
Search
Tags
- comcast (3)
- advanced (2)
- custom (2)
- customization (2)
- google (2)
- ISP (2)
- linux (2)
- network (2)
- network latency (2)
- posterous (2)
- View all 92 tags
- programming (2)
- python (2)
- Apache (1)
- auth (1)
- backbone (1)
- backgrounds (1)
- backup (1)
- bash (1)
- bash script (1)
- bin (1)
- brainstorm (1)
- calculator (1)
- capacity (1)
- client (1)
- collatz (1)
- collatz conjecture (1)
- compliant (1)
- contract (1)
- core (1)
- crawl (1)
- crawler (1)
- cron (1)
- css (1)
- customer service (1)
- default (1)
- dropbox (1)
- email (1)
- favicon (1)
- fios (1)
- folder (1)
- friends (1)
- gmail (1)
- googlebot (1)
- google wave (1)
- grep (1)
- host (1)
- hosting (1)
- image (1)
- imgur (1)
- interview (1)
- invites (1)
- IP (1)
- latency (1)
- logs (1)
- lonely (1)
- mailing lists (1)
- math (1)
- mathematics (1)
- newbie (1)
- NIX (1)
- open source (1)
- packet (1)
- packet loss (1)
- php (1)
- ping (1)
- provider (1)
- python development (1)
- reality (1)
- reddit (1)
- RFC (1)
- rfc822 (1)
- robots (1)
- robots.txt (1)
- routing (1)
- rsync (1)
- sales tax (1)
- script (1)
- security (1)
- SEO (1)
- server (1)
- ssh (1)
- technician (1)
- throttling (1)
- tweet (1)
- twitter (1)
- ubuntu (1)
- unix (1)
- verizon (1)
- virtue (1)
- wave (1)
- web (1)
- windows7 (1)
Collatz Conjecture - Python
Using Wikipedia’s pseudocode description of the Collatz Conjecture, I whipped something up in Python. Try it!
n = int(input("What number would you like to explore? "))
while n > 1:
print(n)
if n % 2 != 0:
n = 3*n + 1
else:
n = n/2
print(n)
--
Brie
Sales Tax Calculator - Python
Python is a very cool programming language that I've started learning. It's extremely powerful and I've already done some neat stuff with it. I wrote an interactive sales tax calculator for PA residents. (I'm working on a version that will let you tell me what state you are in and output the information appropriately.
# This is actually the cost of the item and the tax. This would be a ridiculous tax rate.
tax = 1.07
price = raw_input("How much is your item before tax? ")
totalcost = float(price) * float(tax)
finalanswer = round(totalcost, 2)
print finalanswer
Here's a screenshot of how it works:

0 Comments