I'd like to request a new board
- atomtengeralattjaro
- Site Admin
- Posts: 37518
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
Re: I'd like to request a new board
KthxAnonymously Famous wrote:It was a code fragment. Assume a class and a method surrounding it.
If two wrongs don't make a right, try three. - Laurence J. Peter
- AmazinglyASDF
- ASDF Worshipper
- Posts: 468
- Joined: Thu Jul 21, 2011 5:51 am
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: I'd like to request a new board
Hurray! Coding is fun!
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- Dreams
- ASDF High Priest
- Posts: 2306
- Joined: Tue Nov 29, 2011 7:04 pm
- Location: STOP STALKING ME! I'M INSECURE!
- Contact:
Re: I'd like to request a new board
I can code too!
Code: Select all
print 'Hi'
Re: I'd like to request a new board
Lawl:
Code: Select all
shutdown -s
If two wrongs don't make a right, try three. - Laurence J. Peter
- Dreams
- ASDF High Priest
- Posts: 2306
- Joined: Tue Nov 29, 2011 7:04 pm
- Location: STOP STALKING ME! I'M INSECURE!
- Contact:
Re: I'd like to request a new board
I made a calculator program that gave you all of the wrong answers. I'll get the code up later.
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: I'd like to request a new board
I'm going to code up a countdown program soon-ish (probably today). I'll put the code up in the programming topic.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- Dreams
- ASDF High Priest
- Posts: 2306
- Joined: Tue Nov 29, 2011 7:04 pm
- Location: STOP STALKING ME! I'M INSECURE!
- Contact:
Re: I'd like to request a new board
Python animates snow really well. Now to make the snow stick to the ground...
Re: I'd like to request a new board
Lol...Dreams wrote:I made a calculator program that gave you all of the wrong answers. I'll get the code up later.
If two wrongs don't make a right, try three. - Laurence J. Peter
- Dreams
- ASDF High Priest
- Posts: 2306
- Joined: Tue Nov 29, 2011 7:04 pm
- Location: STOP STALKING ME! I'M INSECURE!
- Contact:
Re: I'd like to request a new board
Code: Select all
import random
thisvariablewillneverbeused=int(raw_input())
print rand.range(123123123123123)
Re: I'd like to request a new board
why do you need the variable "thisvariablewillneverbeused"?
If two wrongs don't make a right, try three. - Laurence J. Peter
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: I'd like to request a new board
Maybe you're going to use it later.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: I'd like to request a new board
But it says it'll never be used!
If two wrongs don't make a right, try three. - Laurence J. Peter
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: I'd like to request a new board
A variable's name is only supposed to describe it. That's not enforced, though.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: I'd like to request a new board
But it doesn't say it in the text!
If two wrongs don't make a right, try three. - Laurence J. Peter
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: I'd like to request a new board
Then maybe it's just not used. There's nothing wrong with that. Maybe they want to control the time of execution, and they calculated that the amount of time that it takes to calculate a random number and store it in a variable is perfect.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: I'd like to request a new board
...I give up
If two wrongs don't make a right, try three. - Laurence J. Peter
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: I'd like to request a new board
That's probably for the best.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.