class var(): def __init__(self): self.name = "hello world!" self.printtimes = 1 def printr(inp): while inp.printtimes>0: print inp.name inp.printtimes = inp.printtimes-1 start = var() def run(): printr(start) run()
Rube Goldberg Programming
Page 1 of 13 Replies - 1845 Views - Last Post: 31 August 2008 - 11:56 AM
#1
Rube Goldberg Programming
Posted 31 August 2008 - 11:20 AM
the programming style based on Rube Goldberg's machines
Replies To: Rube Goldberg Programming
#2 Guest_Whizzy*
Re: Rube Goldberg Programming
Posted 31 August 2008 - 11:25 AM
Cool. Now place it in the proper forum, and we're all set. This is the lounge bro.
#3
Re: Rube Goldberg Programming
Posted 31 August 2008 - 11:53 AM
1) Why is this in the lounge?
2) Why are you telling us this?
3) Where does this belong?
2) Why are you telling us this?
3) Where does this belong?
#4
Re: Rube Goldberg Programming
Posted 31 August 2008 - 11:56 AM
Please post your programming questions in the proper forum, in this case the Perl & Python forum. Moved to Perl & Python
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote








|