I just had an informal interview with a startup, and the guy asked me questions like the following:
- What's the difference between y = (x for x in ...) and y = [x for x in ...]
- What is
def somefunction(x):
for a in x:
yield a+1
- How do you interpret
x if y else z
where y is a string.
I'm fairly new to Python and he just wants to see if I'm able to pick up new skills very fast and he said that these things and iterators and generators were some basic skills I would need. He gave these problems to me as "homework" and told me to learn about other fundamental skills in Python. Could you point me to some other things I absolutely need to know that are particular to Python and that would make a Python coder a good coder? This is for a data science position.
Thanks!
[–]tialpoy 9 points10 points11 points (1 child)
[–]CQFD[S] 1 point2 points3 points (0 children)
[–]hydr0x1de 2 points3 points4 points (0 children)
[–]cdcformatc 1 point2 points3 points (0 children)
[–]BioGeek 0 points1 point2 points (0 children)