User Controls

80 beers, minus your age, plus 40 dollars, gives you the year you were born.

  1. #21
    netstat African Astronaut
    edited for privacy
    The following users say it would be alright if the author of this post didn't die in a fire!
  2. #22
    Ghost Black Hole
    Originally posted by netstat take 2000 j'ews subtract your age add 20 barrels of zyklon and you have the year you were born

    compiling...
  3. #23
    mmQ Lisa Turtle
    Take 73,502 muffins, subtract 71,555 + your age, and youll be in the ballpark of the year you were born then just add or subtract whatever number you need to to get to the year you were born, and you'll have the year you were born.
  4. #24
    Ghost Black Hole
    Originally posted by mmQ Take 73,502 muffins, subtract 71,555 + your age, and youll be in the ballpark of the year you were born then just add or subtract whatever number you need to to get to the year you were born, and you'll have the year you were born.

    God dammit this is a lot of forumlaes and programming to keep track of.. this better be worth it, I've spend over an hour now trying to figure this shit out
  5. #25
    Ghost Black Hole
    it says my age is "syntax error"
  6. #26
    mmQ Lisa Turtle
    Originally posted by Ghost it says my age is "syntax error"

    /welcome to the matrix emoji goes here
  7. #27
    Ghost Black Hole
    the calculator app I downloaded was just a virus..

    Back to the python compiler for me
  8. #28
    netstat African Astronaut
    edited for privacy
  9. #29
    Ghost Black Hole
    programming looks like flirting with girls on myspace in 2005
  10. #30
    Ghost Black Hole
    i have finished my python calculator script. Compiling now and doing the maths to figure this out

    # idk wat im doering

    # add
    def add(x, y):
    return x + y

    # Take away
    def subtract(x, y):
    return x - y

    print("do maths.")
    print("1.Add a numbers")
    print("2.Minus a numbers")

    while True:
    # choose mode
    choice = input("type 1 to add type 2 to subtract: ")

    # i found this part on google
    if choice in ('1', '2'):
    num1 = float(input("Enter first number: "))
    num2 = float(input("Enter second number: "))

    if choice == '1':
    print(num1, "+", num2, "=", add(num1, num2))

    elif choice == '2':
    print(num1, "-", num2, "=", subtract(num1, num2))

    break
    else:
    print("u pressed wrong button")
    The following users say it would be alright if the author of this post didn't die in a fire!
  11. #31
    -SpectraL coward [the spuriously bluish-lilac bushman]
    80 - (2020 - age) + 40 = birthyear
  12. #32
    netstat African Astronaut
    edited for privacy
  13. #33
    cigreting Dark Matter
    damn its right on
  14. #34
    rabbitweed African Astronaut
    Originally posted by Ghost i have finished my python calculator script. Compiling now and doing the maths to figure this out

    # idk wat im doering

    # add
    def add(x, y):
    return x + y

    # Take away
    def subtract(x, y):
    return x - y

    print("do maths.")
    print("1.Add a numbers")
    print("2.Minus a numbers")

    while True:
    # choose mode
    choice = input("type 1 to add type 2 to subtract: ")

    # i found this part on google
    if choice in ('1', '2'):
    num1 = float(input("Enter first number: "))
    num2 = float(input("Enter second number: "))

    if choice == '1':
    print(num1, "+", num2, "=", add(num1, num2))

    elif choice == '2':
    print(num1, "-", num2, "=", subtract(num1, num2))

    break
    else:
    print("u pressed wrong button")

    Some tips

    1. I got rid of the add and subtract functions, you can just do it inline
    2. prefer variable names like x and y to num1 and num2. It's easy to get the latter confused.
    3. you can use string interpolation to make printing strings with variables a bit nicer


    # idk wat im doering

    # add
    print("do maths.")
    print("1.Add a numbers")
    print("2.Minus a numbers")

    while True:
    # choose mode
    choice = input("type 1 to add type 2 to subtract: ")

    # i found this part on google
    if choice in ('1', '2'):
    x = float(input("Enter first number: "))
    y = float(input("Enter second number: "))

    if choice == '1':
    print(f`x + y = {x + y}`)

    elif choice == '2':
    print(f`x - y = {x - y}`)

    break
    else:
    print("u pressed wrong button")

    The following users say it would be alright if the author of this post didn't die in a fire!
  15. #35
    mmQ Lisa Turtle
    Originally posted by -SpectraL 80 - (2020 - age) + 40 = birthyear



    Originally posted by mmQ It works if you use 1,980 beers. 80 beers puts you back in Biblical times.
  16. #36
    cigreting Dark Matter
    Originally posted by netstat python is okay if you're homosexual

    🤣🤣🤣🤣🤣
  17. #37
    -SpectraL coward [the spuriously bluish-lilac bushman]
    disclaimer: this equation doesn't not compute using American beer or Americans
  18. #38
    rabbitweed African Astronaut
    Originally posted by -SpectraL disclaimer: this equation doesn't not compute using American beer or Americans

    -SpectraL help Ghost out with a Fortran 77 program or maybe some COBOL on punch cards.
  19. #39
    Ghost Black Hole
    OH SHIT IT WORKS
  20. #40
    Splam African Astronaut
    This is one of those memes that goes in waves. Just saw it on facebook. Remember seeing it a few years back.
Jump to Top