Comment on: [Humor] How to save the princess using 8 programming languages
Valid - See updated code.
Comment on: [Humor] How to save the princess using 8 programming languages
Patched to include countermeasures...
Comment on: [Humor] How to save the princess using 8 programming languages
import heroic_knight
from global_standards.western import legal_age
princess_store = {}
if princess.age < legal_age:
princess = heroic_knight.do_rescue(princess)
princess_store[princess.name] = princess
elif princess.age <= 29: heroic_knight.do_rescue(princess)
else: pass
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
Less Python:
def non_repeat(some_string):
return [char for char in some_string if some_string.count(char) < 2][0]
You make it sound like they have the ability to drink anything but soy...