r/learnpython • • Apr 10 '19

My recent interview experience on Python.

Role: Automation Test Developer.

Questions asked:

1: Basics of Linux, few tricky commands, what are inodes, setting up networking etc etc.

2: Python:

Given a file, write a function which accepts a version 
number, date and returns pass or fail. 

 EDIT:
 the file structure is basically a test result log file which contains lines of information.
 Each line has a version and date, tests run and results. 
 I was supposed to return results which are pass fail based on the version number and date given.:)


Reverse a sentence without using slicing.

List comprehension basics. 

What I did right: I wrote enough code solving pythonic interview problems, and I was comfortable writing the code in the interview.

what I did wrong: Focused too much on interview type problems, like Coin change, linked list etc etc. Should have also focused on some real use cases of python. For example, how to test a code with different inputs, how to parse few lines from a file, how to schedule a cron job etc etc.

TLDR; Don't just bust your head trying to solve interview challenges from cracking the coding interview. Also learn to make some real world programs.

412 Upvotes

83 comments sorted by

View all comments

7

u/MyCousinVinny101 Apr 10 '19

Any tips on learning linux? Wouldn’t even know where to begin if im being honest

2

u/heisenberg149 Apr 11 '19

In addition to what everyone else has mentioned, I went over the Linux Journey over the last couple weeks. It's great that everyone said to get a distro (I personally like Fedora's KDE spin) and try it out, but no one told you what to really do with it to start to learn Linux aside from the surface stuff. I found the info on there really helpful, I'd been using Linux on and off since '08 but never needed to dig any deeper than a few commands and general web browsing, homework, etc.