- Code: Select all
`#!/usr/bin/env python`

#DONT LOOK AT MY FUCKING SOURCE CODE!!!

print ("This is a calculator.")

print ("The possible functions are as follows:")

print ("1: add, 2: subtract, 3: multiply, 4: divide, 5: exponent")

#For all intentive purposes 'poop' is now an object which is the root of all mathmatical operations.

class poop:

amount_of_corn = 0

viscosity = 0

yaw = 0

shades_of_brown = 0

quality_of_service = 0

density = 0

consistancy = 0

boyancy = 0

girth = 0

stank = 0

steam = 0

def choice(self):

turd= int(input("Enter what function you would like: "))

if turd == (add):

corn= int(input("Enter the first number")

visc= int(input("Enter the second number")

timmy.poop = amount_of_corn = corn

dong.poop = viscosity = visc

print (b + c)

As you can see this is not the standard way to program a calculator but i would like to ease my way into oop. Although after the inevidable wiseass comments i would appreciate if someone could offer input that would assist this to function. corn and visc are strings.