Quote:
Originally Posted by RustyBrooks
Anyway, I need to find a few good interview questions to ask people, programming or logic puzzles or some ****, I dunno.
What's wrong with the questions in the interview thread? Apparently that matrix swirl was a hit.
Quote:
Originally Posted by adios
How hard is python to learn? Doesn't seem that hard.
Depends on what you mean by learn? To be useful and able to push stuff out, probably a week, but if you are going to be a Pythonista, where you are talking about OO, decorators, generators, Standard Lib, fully semantic pythonic code, Pandas, Numpy, etc, then probably a good 6 months to a year.
It's a layered language, meaning it is targeted towards beginners while still offering enough for people to learn something new all the time, so even after years, you realize you haven't fully "learned" Python.
For example, I learned how to add a dictionary to a dictionary generator about 2 weeks ago:
Code:
>>> a = {1 : 1}
>>> d = {**{i : i ** 2 for i in range(2, 11)}, **a}
>>> d
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}
Generators are the fastest ways to build dictionaries, lists, and sets. I wouldn't expect someone who is relatively new to Python to know about all of this, but I wouldn't say that someone who did this didn't know Python:
Code:
>>> a = {1: 1}
>>> d = {}
>>> for i in range(2, 11):
... d[i] = i ** 2
>>>
>>> for k, v in a.items():
... d[k] = v
>>>
>>> d
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}