The Trash Heap of the Heapers' Hangout

1310731083110311231137762

Comments

  • More people have said that and been killed than there are thorium decay products.
    By passing a blank string for the end we tell the
    print()
    function
    to not add a newline at the
    end of the string, but instead add a blank st
    ring. This is why
    '
    -
    MOO!'
    appears next to the
    previous line, instead of on its own line. There was no newline printed after the
    'Interrupting cow wh'
    string

    It makes my brain hurt a little but I think it makes sense.
  • More people have said that and been killed than there are thorium decay products.
    ok that was less of a headache than I thought. Chapter 6 has dragon in the title. :) Let's get reading.
  • More people have said that and been killed than there are thorium decay products.
    ok I am going to write a function for the first time? Is this scary or not...?
  • My dreams exceed my real life

    Worstthingever.avi
  • edited 2013-07-14 21:30:25
    More people have said that and been killed than there are thorium decay products.
    btw I'm jamming to the Espgaluda OST while I read this.


  • More people have said that and been killed than there are thorium decay products.
  • More people have said that and been killed than there are thorium decay products.
  • Smee, Maiman, Doktar, Pavelier, Button-Lee, Juan Ovyu
    The only good thing related to Leetstreet Boys is that Japanese TV show where they made fun of them, and them believing they are actually famous there
  • More people have said that and been killed than there are thorium decay products.
  • Touch the cow. Do it now.
    so yeah I dunno

    image
  • More people have said that and been killed than there are thorium decay products.
    teehee Boolean is a funny word.
  • More people have said that and been killed than there are thorium decay products.
    ^^ They are all afraid of Samuel L. Jackson? XD
  • More people have said that and been killed than there are thorium decay products.
  • I've learned to tolerate drama...except on the boat
    Ugh

    I'm not used to Ohio's sticky humidity

    It seems even more potent than Michigan's
  • More people have said that and been killed than there are thorium decay products.
    So I can have a variable inside a function and one outside the function and they can have the same name and be two different things. :D
  • More people have said that and been killed than there are thorium decay products.
    oh so a gobal variable exists in a function but can't be modified... that could make things a little confusing. >_>
  • More people have said that and been killed than there are thorium decay products.
    Specifically, we can read the value of global variables from the local scope, but attempting to
    change the value in a global variable from the local scope will leave the global variab
    le
    unchanged. What Python actually does is create a local variable with the
    same name
    as the
    global variable. But Python will consider these to be two different variables.
    oh~ that's trippy. @_@ But now it makes sense. :D

  • Touch the cow. Do it now.
    Are you learning things, Miko?
  • More people have said that and been killed than there are thorium decay products.
    Why yes. :D
  • edited 2013-07-14 22:11:15
    More people have said that and been killed than there are thorium decay products.
    hmmm so making a function with a parameter in the "define" line...? o_o
    This is how we pass variable values to functions since functions cannot read
    variables ou
    tside of the function (that is, outside of the function's local scope).
    I thought functions could read global variables? :o

  • You are the end result of a “would you push the button” prompt where the prompt was “you have unlimited godlike powers but you appear to all and sundry to be an impetuous child” – Zero, 2022
    Anonus said:

    Ugh


    I'm not used to Ohio's sticky humidity

    It seems even more potent than Michigan's
    It's been especially muggy this weekend, since it rained like 5 days in a row this past week.

    Who knows, though, maybe next time the tables will be turned and it'll be me who can't adjust to Denver's altitude. :P
  • Local scope includes global scope, I think is what he's getting at.
  • edited 2013-07-14 22:12:10
    I've learned to tolerate drama...except on the boat
    ^^I've wondered that myself.

    Also the dry air.
  • THIS MACHINE KILLS FASCISTS
  • edited 2013-07-14 22:13:24
    More people have said that and been killed than there are thorium decay products.
    Local scope includes global scope, I think is what he's getting at.
    This is why it's confusing that we do something like

    def checkCave(chosenCave):
        bla bla more code
  • The sadness will last forever.
    berrrrrrrrrrfff
  • You are the end result of a “would you push the button” prompt where the prompt was “you have unlimited godlike powers but you appear to all and sundry to be an impetuous child” – Zero, 2022
    Anonus said:

    ^^I've wondered that myself.


    Also the dry air.
    Ah, that too.

    I guess we'll find out sometime~
  • You are the end result of a “would you push the button” prompt where the prompt was “you have unlimited godlike powers but you appear to all and sundry to be an impetuous child” – Zero, 2022
    fuck yes, carrying on online conversation from across the room from each other
  • Touch the cow. Do it now.
    Denver is high up and the air is thinner

    just sayin'
  • The sadness will last forever.
    bing bing
  • fuck yes, carrying on online conversation from across the room from each other

    This made me smile.
  • The sadness will last forever.
    far ming
  • You are the end result of a “would you push the button” prompt where the prompt was “you have unlimited godlike powers but you appear to all and sundry to be an impetuous child” – Zero, 2022
    To be fair, we're talking to each other in person too, but about different stuff
  • More people have said that and been killed than there are thorium decay products.
    ok so caveNumber is chooseCave, then checkCave uses caveNumber as a parameter/argument in the main loop but when we define it we instead use chosenCave, which is only ever used once and inside the function at that...? does caveNumber become chosenCave? Why not call them the same thing?? ow my brain.
  • Touch the cow. Do it now.


    now that is a tsundere
  • More people have said that and been killed than there are thorium decay products.
    def sayHello(name):
    print('Hello, ' + name)
    print('Say hello to Alice.')
    fizzy = 'Alice'
    sayHello(fizzy)
    print('Do not forget to say hello to
    Bob.')
    sayHello('Bob')
    Wait this makes more sense. So the parameter in the "define" line is a variable created in the function that is changed when you call the function. :o Trippy!!!

  • More people have said that and been killed than there are thorium decay products.
    ffffffffff it makes sense ~_~ how is my brain able to absorb this???? I thought I was as dumb as a bag of rocks.
  • edited 2013-07-14 22:30:18
    More people have said that and been killed than there are thorium decay products.
    I like how you have to define a function before calling it in the code. It's like beginning a story in media res. ^_^
  • The sadness will last forever.
    che bung
  • The sadness will last forever.
    satan, stop being so tsundere
  • edited 2013-07-14 22:33:35
    More people have said that and been killed than there are thorium decay products.
    hmmm so a colon seems to always go before a new block....? Or will that change. I shall see. :) It seems to be a good rule to follow when writing Python code anyway.
  • More people have said that and been killed than there are thorium decay products.
    ohhhh the blank parentheses represent the function's "return" value. :o So that is why we use "return." :D
  • The sadness will last forever.
    mister burger
  • The sadness will last forever.
    nom nom nom studios
  • The sadness will last forever.
    typicalinternetpost.text
  • More people have said that and been killed than there are thorium decay products.
    wow 104 pages aready! :o
  • More people have said that and been killed than there are thorium decay products.
    I am ~22% through this textbook. :3
  • The sadness will last forever.
    munch munch posties
  • More people have said that and been killed than there are thorium decay products.
    Chapter 7 is about debugging. That sounds not so fun. ^_^
  • I kinda...

    skipped that one, admittedly.
Sign In or Register to comment.