Support Forums

Full Version: Programming challenge, winner gets $$$
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(12-13-2010, 04:14 PM)dan08 Wrote: [ -> ]
Code:
box1 = ["car", "truck", "dolphin", "dragon", "penguin"]
box2 = ["truck", "pelican", "grenade", "turtle", "commando", "egg", "dolphin"]
output_box = []

for io in box1:
    for it in box2:
        if io == it:
            output_box.append(io)
    
print(output_box)


How do you prefer to send me the 50 bucks then?

ah damn, I was in the middle of making this.
Pages: 1 2