Jump to content

dannnex

Members
  • Posts

    1915
  • Joined

  • Last visited

  • Days Won

    13

dannnex last won the day on September 20 2022

dannnex had the most liked content!

About dannnex

  • Birthday 04/19/2004

Contact Methods

  • Discord
    @dannnnex

Profile Information

  • Member Title
    your friendly neighborhood puffball
  • Pronouns
    male
  • Location
    Your Wildest Dreams (also idaho sometimes)
  • Interests
    programming, photo editing, game dev, philosophy, writing

dannnex's Achievements

4k

Reputation

Single Status Update

See all updates by dannnex

  1. i am proud of myself

    look at this code

    x = int(input('What number would you like to take the facorial of?\n>> '))
    z = 1
    output = x
    while x > z:
        output *= (x-z)
        z += 1
    print(output)

    7 lines
    and it took me like an hour to write
    but it's so simple
    so elegant

    most graceful code i've ever written (in my whole 8 weeks of programming experience)

    1. Show previous comments  4 more
    2. Chasmgoat

      Chasmgoat

      isn't there a factorial function?

    3. dannnex

      dannnex

      i think so yeah

      but the project was to write as simple a program as possible that does the same thing using only basic stuff

    4. Morningtide
×
×
  • Create New...