freeCodeCamp.org

Which Python data structure would Santa use to store his reindeer team?

4 months ago | [YT] | 1,468



@aightm8

Rudolph was a benchwarmer until suddenly he was reindeer 0. Clearly flexibility is needed

4 months ago | 135

@etdr

Crazy that this is a quiz and not a poll, especially the way it's written

4 months ago | 136

@kebebets

I thought that Rudolph is only needed for foggy Xmas nights. Otherwise, he is out. Which is not possible with tuples

4 months ago | 94

@semkjaer3581

Actually he uses a list, and he checks it twice

4 months ago | 18

@sam-kx3ty

I picked a set, because they are all unique (they all have names and order does not matter).

4 months ago | 6

@danser_theplayer01

Python is too slow for some global-over-night work.

4 months ago | 59

@ShivaniSharma-h7g

Ohh, I got it right.. finally my knowledge I gained while learning python at Moonpreneur is benefiting me. Hey, please bring such more quizzes like this..

3 months ago | 0

@cobelali

If he's keeping a list, the order shouldn't matter.

4 months ago | 8

@szendrenko

Classic design mistake to assume that the order will never change. When you use human language to give the names of the reindeer - you must choose an order. But just like bicycle racing and many other sports - you need to take turns at the front, or your performance will suffer. Your design mistake will lead to up to 40% of children receiving no gifts.

4 months ago | 4

@hawaiihiker6285

This is a quiz? Thanks for breaking my right answer streak

4 months ago | 17

@anirbandhara8835

I don't even know the name of reindeers Santa has

4 months ago | 16

@elizabethhuffman9538

A list for flexible reindeer management

1 month ago | 0

@dragonfractal6361

They don’t always need to go by the order in the song. Maybe Santa wants to switch things up now and then.

4 months ago | 2

@alakani

Rudolph was invented for a Montgomery Ward ad and Donner used to be Donder, who knows what things will be like next year! Is the potential downtime really worth the 1 millisecond?

3 months ago | 0

@jonasciliento336

None, he'd still be using FORTRAN for his automated systems.

4 months ago | 10

@leonoraekaterina5838

Santa uses rust

4 months ago | 0

@RecreationalNuke

I think he's old enough to know the importance of using a good language rather than a poorly optimized patched together pile of reindeer manure that shoehorned its way into popular use because of lazy and poorly taught "developers" and how accurate AI can write the language. Now excuse me while I go finish up my python project because it allows me to get more done per hour (while holding back vomit).

4 months ago | 1

@uartimcs

I believe it is a list than a tuple

4 months ago | 6

@HelloThere-xs8ss

But Rudolph wasn't first originally.

4 months ago | 0

@johnkotchmusic

Unverified. That’s the way the song goes, not necessarily the order of the reindeer.

4 months ago | 12