No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
[code=python] answer = ('7', 'Q', '5', 'H', '9', '4', '3', '8', 'L') ans = ''.join(answer) print ans [/code] Should give you [icode]7Q5H9438L[/icode]. Did this help?
I personally use Ruby for a lot of general scripting off of the web (e.g., creating GUIs with FxRuby). I went to try and find some Ruby info and the first place I went was the Software Development area. After I couldn't find a Ruby forum in there, I looked …
You could also use [icode]c.isdigit()[/icode] instead of [icode]c in '123456789'[/icode] for the first example.
Hello Daniweb, I've recently begun reading the e-book Squeak by Example. So far, I'm finding the Smalltalk language pretty interesting and much more stimulating than, say, Java. I'm on chapter 3 of the book. By now, since I'm much more used to creating runnable programs or scripts with other languages, …
I wish I knew the subject matter, I might be able to help you better. I'll try anyway, though :) For your first issue, you can return a tuple or a list: def someFunction: return ("Value1", "Value2") Or, alternatively, for a list (which is mutable, unlike a tuple) return ["Value1", …
The End.
crono5788