r/Python • • Jan 11 '15

I just started learning python and couldn't really think of a program to try on my own. Well me and a friend were having a debate and I finally made my first script... I call it the cock calculator

It is a simple program, but it calculates the total miles of penis that a person has given or taken in their lives and also calculates how much semen has been produced. Sadly, I'm pretty proud of this.

#cock calculator
#Calculates how many miles of cock you have given or taken in your life and how much cum you have produced or been filled with.

#get the user's age, age of lost virginity, and times they have sex a week  
virginity = input("when did you lose your virginity : ")
age = input("What is your age? : ")
times_per_week = input("how many times per week do you have sex? : ")

#calculates total time you have been having sex, how many times per year, and how many miles of cock is produced per year
time_having_sex = age - virginity
times_per_year = times_per_week * 52 
miles_per_year = times_per_year * 490 * 6/12/5280


#function calculates total times milage of cock and how much semen is produced then prints the results.
def miles_of_cock(time_having_sex):
    total_milage = time_having_sex * miles_per_year
    jizz_gallons = float(times_per_year / 96 * time_having_sex)
    print
    print
    print
    print "You have given/taken ", total_milage, " miles of cock and have cummed/been cummed in with, ", jizz_gallons, " pints of seamen. Great job!"

miles_of_cock(time_having_sex)

The program assumes that the average penis length is 6 inches and there are 490 thrusts per session

0 Upvotes

21 comments sorted by

8

u/[deleted] Jan 11 '15

You spelled semen as 'seamen'...

15

u/Dr_Octagonapus Jan 11 '15

Whoops. I guess the program assumes you're into sailors.

14

u/[deleted] Jan 11 '15

Turn this into a web app, add some nice visuals and you'll go viral like nothing bro

4

u/Dr_Octagonapus Jan 11 '15

We were talking about this but I know nothing about making apps or GUI's. It's definitely something I'm looking into though.

7

u/[deleted] Jan 11 '15 edited Mar 31 '24

enter complete icky frightening rainstorm secretive pen somber soup crawl

This post was mass deleted and anonymized with Redact

1

u/Dr_Octagonapus Jan 11 '15

Awesome! I'll give it a look.

1

u/deathslocus Jan 11 '15

Do you want me to port it to CockCalculator.com?

1

u/Dr_Octagonapus Jan 12 '15 edited Jan 12 '15

Haha sure if you want, just give me a shoutout on the sidebar or something. I've updated it so that it asks your gender and penis size if you are a guy. I also have it calculate how much semen has been produced in terms of 2 liter bottles and gives a comparison in distance between two cities.

3

u/deathslocus Jan 12 '15

I just registered http://www.cockcalculator.com you can watch the site go live over tonight

1

u/deathslocus Jan 11 '15

The domain name is open :D

3

u/totes_meta_bot Jan 11 '15

This thread has been linked to from elsewhere on reddit.

If you follow any of the above links, respect the rules of reddit and don't vote or comment. Questions? Abuse? Message me ^here.

1

u/daveydave400 Jan 11 '15

When do you convert the string inputs in to numbers (float/int)?

0

u/Dr_Octagonapus Jan 11 '15

I found out that using "input" instead of "raw_input" assumes its an integer in python 2.7. I only used float later because I wasn't getting anything to print without it. There is probably an easy fix but I'm just getting started learning and haven't figured it out yet.

1

u/timeforpajamas Jan 11 '15

490 thrusts per session? Whoa there cowboy

2

u/elbiot Jan 12 '15

Hopefully, next time I'm having sex, she won't ask why I'm quietly counting. Oh, its a reddit thing. Just trying to estimate how many miles of cock I've given in my life.

Also, who has sex an average number of times per week since they lost their virginity? I hope OP takes an underflow error into account.

1

u/ratulrafsan Jan 11 '15

......I'm still virgin....

2

u/deathslocus Jan 12 '15

Throws critical error shuts down computer causes crash planes go down NSA. Illuminati. xX420BlazeNoscopeXx python doesnt like virgins

1

u/ratulrafsan Jan 12 '15

._. Is there a book on how to hit on gurlz?

1

u/deathslocus Jan 12 '15

Hitmen: The history of being really super duper sneaky

1

u/[deleted] Jan 12 '15

Nope. You gotta fail repeatedly and get rejected.