Linux gamer, retired aviator, profanity enthusiast

  • 2 Posts
  • 1.68K Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle









  • AFAIK the syntax seems to be the same.

    def sayHam():
        print("Ham")
    
    sayHam()
    

    works when typed into the Python console, no class needed. I program as a hobby, I’m no expert on the language, but does Python even differentiate between functions and class methods internally? Other than just scope? There’s a possibility I’ll learn something today.








  • Captain Aggravated@sh.itjust.workstoLemmy Shitpost@lemmy.worldAvocado
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    4 days ago

    The number of steps on the side of the peel and the sides of the fruit don’t match, and why would the concave sections for the pit be on the convex sides of the fruit? Unless these are a bunch of individual square pieces that were pulled out individually and then lined up, so the part around the pit “collapsed” to the table, but the tops of the domed part are oriented wrong…it’s some kinda bullshit.