Off Topic > Off Topic

Programming Megathread

Pages: << < (205/241) > >>

Foxscotch:

what is "index.num" supposed to be, in the first place? you never define that

Bloody Mary:

Not sure about the rest of your code, but you'll probably want to change


--- Code: ---for index.num in range(len(numbers)):
    total = sum(numbers)

--- End code ---
into

--- Code: ---total = 0
for item in numbers:
    total += item

--- End code ---

And you'll probably want to return total somewhere.

Metario:

b-u-m-p
anybody who places their semicolons on the next line should BE GASSED AND KILLED, EFFECTIVE IMMEDIATELY
SAME GOES FOR ANYBODY WHO PLACES THEIR BRACES ON THE
SAME.
loving.
LINE.
REEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEEEE

Foxscotch:


--- Quote from: Metario on December 18, 2016, 11:46:31 PM ---anybody who places their semicolons on the next line should BE GASSED AND KILLED, EFFECTIVE IMMEDIATELY
SAME GOES FOR ANYBODY WHO PLACES THEIR BRACES ON THE SAME. loving. LINE.
REEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEEEE

--- End quote ---
do you think you're funny, I wonder

cooolguy32:


--- Quote from: Metario on December 18, 2016, 11:46:31 PM ---b-u-m-p
anybody who places their semicolons on the next line should BE GASSED AND KILLED, EFFECTIVE IMMEDIATELY
SAME GOES FOR ANYBODY WHO PLACES THEIR BRACES ON THE
SAME.
loving.
LINE.
REEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEEEE

--- End quote ---
wat

Pages: << < (205/241) > >>

Go to full version