Preparing for a Python Interview: 10 Things You Should Know

Corey Schafer · Beginner ·🏗️ Systems Design & Architecture ·10y ago

Key Takeaways

The video covers 10 essential topics for a Python interview, including basic control flow, common interview problems, data types, list comprehensions, generators, object-oriented programming, and database communication. It provides practical steps and tools for preparation, such as practicing problems on a whiteboard, using the OS and glob modules, and understanding SQL Alchemy for database communication.

Full Transcript

hey everybody how's it going uh in this video uh we're going to learn how to prepare for a python interview and 10 things that you should know before going into this interview um so I'm going to go over some different advice and we'll also look at some code examples to get you ready uh so one thing before I get started is uh that a lot of what I'm going to say here applies to entrylevel python positions so if you're applying for a senior level position uh then likely that's going to require you to know all of the items in this list but then you'll also need to know some more advanced topics as well um so with that said let's go ahead and get started so the first thing is that you should know how to write code on a whiteboard or or a piece of paper now this isn't just specific to python this goes for any programming language that you're going to have an interview with because a lot of companies won't have a computer set up for your interview so you're likely going to be in a room with either a notebook or a whiteboard and live coding might not even come up in your interview but if it does then you need to be ready to do that without a computer so if you've never done this before then you'd actually be surprised at how hard it is to not use a computer um so you might want to go ahead and start doing all of your practice problems that you're preparing for your interview do them all on a whiteboard or on a piece of paper and then go back and check all of those answers on a computer to make sure that you got all the syntax correct and everything like that okay so moving on to number two know the base basic control flow within python so by control flow I mean know how to use for Loops while Loops uh if and else statements and things like that um so I have a code example here that we can take a look at so I know a lot of this looks extremely basic but like I said before you're not going to have a computer so you want to know how to write these things out uh without thinking about it you're not going to have any autoc completion or anything like that um so know how to write down a for Loop and loop through a certain amount of numbers um so if I run this code here it just Loops through these numbers um you want to know how to use while Loops because those could come up in an interview as well um and then you also want to know how to use your uh if and else statements and um also um your L if statements here now I know these three things uh you know for Loops while loops and these if statements I know it seems completely basic but you'd be surprised at how many people uh freeze up on these very basic questions whenever they are new to the interview process so just be sure that you can write them down all by hand and that you know them inside it out and exactly how the uh how the program is going to uh flow through all of these conditionals okay so number three be able to discuss how you've used python in the past so your interviewer is likely going to ask you about past projects and you just don't want to draw a blank um so if you've never used python professionally and you're applying for an entry-level position uh then be sure to write a basic project uh before the interview so that you can have some example of something uh that you've written in your free time and also whatever you choose to write try to make it something that's interesting and that'll be interesting to your interviewer um you know just don't tell them how you've uh solved a bunch of sample interview problems like fs buuz and Fibonacci sequences and things like that so for example if you need a couple of ideas for some cool programs that you could write um maybe you want to play around with web scraping and make a script that pulls weather information each day uh you can use the beautiful sup module for that um or you could write a program that performs system tasks so you could write a program that cleans up folders on your computer or moves files around uh displays CPU and memory or something along those lines so so for example I've written a a really small program here that just goes uh uses the OS module and the glob module goes into this directory here if I run this code it just goes into uh My Demo directory here and prints out all of the uh jpeg images so you know something like this just learn how to write a file like this and then whenever you're interviewer asks you the question you know you can say something interesting like well once I did write a program that um looked through my file system and found all these images and moved them to a specific location or something like that so those are just a couple of examples and ideas to get you started but I'm sure that you can think of some really cool ideas on your own after thinking about it for a few minutes okay so number four uh know how to solve common interview problems and questions so a little bit ago I mentioned fizzbuzz and Fibonacci sequences and things like that um those are some common questions that interviewers like to ask now there's been a lot of debate around that type of interview process on online forums um a lot of people say that uh those type of problems aren't a good indicator of programming skill and that interviewers should uh should ask better problems that more reflect real world situations but even though there's a lot of debate whether interviewers should ask those questions a lot of interviewers do ask those questions so um so whether or not you think that they should shouldn't uh is a totally different discussion but um but you should be prepared to at least answer those questions and really it doesn't take a long time to learn how to uh solve a lot of these common problems so like for example if you don't know what fizzbuzz is basically it is um your interviewer will ask you to uh loop through a range of numbers and if the number is divisible by three then print out Fizz if it's divisible by five print out buzz if it's divisible by both than print out fs buuz and this is a solution to the problem here if I print this out um you can see that um it Loops through and everyone that's divisible by three it prints out Fizz and Buzz and if it's divisible by both then it prints out fizzbuzz so usually these kind of questions are meant to weed out people who don't uh understand the basic concepts of a computer language so um for example here you have to know how to use uh for loops and enterate over a um a range of numbers um you know the you have to know the modulo operator and um some things like that and it's the same thing with the Fibonacci sequence that's another question that a lot of interviewers like to ask um so the Fibonacci sequence if you don't know what that is uh basically uh you print out a number and each each number that you print out is the previous two numbers added together um so here let me just print out this example it'll be easier to show so you can see I printed out these numbers here so zero and one if you add those together it equals one if you add one and one it equals two if you add one and two it equals three and it keeps going and keeps G um so you can do this in let's see this is four lines of python code here so like I said a lot of people don't like these questions because they're not the best indicator of programming ability um but they do like to ask these questions and they're so short that it really wouldn't hurt you to learn um how to solve these problems and not only should you learn how to solve them just don't memorize these solutions to these because it'll be obvious that you're just um kind of regurgitating what you've memorized you really want to understand what's going on so for example in this Fibonacci Sequence um this is kind of a unique assignment here a comma b equals 0 comma 1 you want to understand what's going on there um you want to understand um what's going on in this assignment here that looks a little bit more complicated so uh look this up online understand what's going on and be prepared for these type of questions and these two questions aren't the only two common questions that get asked in interviews so after you understand these two questions uh you know get on Google and uh just Google python interview questions and take a look at the first few results because you might even run into a recruiter or an interviewer uh who has taken the questions straight from the first results of the Google search um so then you'd be prepared for those questions so it's a good practice just to go through those and um be ready for some of the basic stuff that people might throw at you okay so moving on here um number five uh no basic python data types and when to use them so these basic data types include um strings and lists and tuples and dictionaries and sets um not only should you understand um how they differ from each other and when you should use one over the other but also know how to iterate over each one so for example here um we just have a list here that we can iterate over um we have a tupal here that we can iterate over in the same way uh the dictionary is kind of unique so uh whenever we iterate over the dictionary here a dictionary is key value pairs um so we want to look at the key and value in all of the dictionaries items and then print those out so that's something that you'll probably get asked and you want to know how to solve and also sets if you don't know what a set is um pretty much it's a list with uh no repeated values and if you uh if we Loop through this list here and print this out you can see that all of these are unique values even though that there are uh duplicates that are added to this set so whenever I say that you want to know uh when to use different data types over another um like one question for example that you might get asked is uh why would you use a tupal instead of a list and that's something that you want to know the answer to um so I'm not going to go into that detail here but I will put some links into this description below um that kind of answer some of these questions for you and also for some bonus points in a question like this um if you can understand the underlying data structures and functionality of how these data types work then that would be great um so this that's more computer science related um but for example you should be able to talk about a dictionary being a hash table and exactly uh what that means um so yeah like I said I'm not going to go into much depth uh about that topic here but you should look up the underlying data structures involved with these data types and know their advantages uh know their weaknesses um know how data gets accessed Within These data types and also know when uh to when to properly use each data type okay so moving on here to uh number six know how to use list comprehensions um now this is a little bit more advanced but um this is the kind of information that will help you stick out amongst other candidates so for example I have a file here of list comprehensions now again I'm not going to go into too much detail here uh I have an entire video on list comprehensions dictionary comprehensions and set comprehensions so if you want more detail about that then I'll put that uh description uh I'll put that link in the description below um but basically it's a more clean and readable way to create these lists so for example in this um so say you have a sample problem where your interviewer gives you a list of 1 2 3 4 5 6 Seven 8 nine 10 and then he says okay just create a list that gives me uh the square of each number in that list so after the top of your head you might want to write a for Loop that goes through each item and then squares the item and Returns the result and all that but I think your interviewer will be really impressed if you just know how to do this short little oneliner here and um list comprehensions are used in real world scenarios all the time so not only is it going to help you in your interview but it's going to help you actually on the job um so here we just are creating a list that is the square of the number for each number in the list so if we print that out you can see that we returned a list here with the squares of all of those numbers okay so let's move on to uh number seven here know how to use generators so you're going to want to know when you want to use generators and also the benefits that you receive uh from using generators um so if I go back to the common problem example here with the fizzbuzz and the Fibonacci sequence um I actually have a Fibonacci Sequence here that I've written using using uh generators instead so if they do ask you a question like this and you used uh generators instead uh then that'll be uh big bonus points for your interviewer so in this example it's almost exactly like the Fibonacci sequence that we went over before um except now we have a function here which yields and yield is the key word that um let you know that it's a generator so it yields your result and then we can Loop through through uh the generator and print out each item so if we run through then we can see that it still works just like it worked before but now we're using generators instead which have um more advantages over uh returning a list but there are times in when uh you wouldn't want to use generators so you do want to do your research and figure out uh when you really do get those advantages from generators and when they may not be the best option for you at the time um also no generator Alternatives uh to certain python version two functions so for example here uh you can see that we have an X range here so it's nice to know that this is that X range behaves more like a generator than what range does so uh X range uh yields one result at a time and range puts the entire range of numbers into memory at once um that's the same thing with uh if I go back to the data types example here um this dictionary example here uh you can see that we are using iter items instead of items because it or items gives us one result back at a time uh rather than putting all of the items into memory so be sure to look up generators understand what they are uh when you would want to use them and also some of these um Alternatives where you can use generators in place of these older python 2 functions okay so moving on here um number eight know the basics of oop or objectoriented programming so to prepare for the basics of objectoriented programming uh for your interview um what I would do is I would just have a sample file or program and write these from scratch over and over and over until it just feels natural so in your head you're going to want to know the general template uh for a class and uh so you have to remember uh again that you're not going to be uh using a computer so um this is one of the main things that uh will trip people up if they are just writing stuff on the Whiteboard because it's so easy on your computer just to hit control space or something and have it pop up and give you the entire um init function and fill it all in for you but to do that from scratch can be a challenge so I would just write these files over and over and over until you just know U how to write down the class uh what it inherits from um remember to put in your init functions and self and then the arguments and then initialize um all of those parameters also you may be asked to explain what certain things mean uh for example self you might be asked to explain what self means um and what it means to make an instance of a class uh so for example I would also make instances of your classes and um here's an example where we are taking a person class and giving them a name then we have a method called reveal identity that just prints out their name so I have an instance of that class down here if I run that you can see that it just prints out my name is Corey when it runs this reveal identity function and we also have a superhero class that inherits from person so you want to know how to inherit from classes um also you want to know how to initialize based off of that um base class and then uh how to override also how to override methods so for example here uh we are calling our base classes reveal identity and then we're adding in some additional functionality here so if I comment out this um Corey variable and uncomment this Wade variable and then run this you can see that it prints out his name and then his super superhero name so there's a little extra functionality there so like I said I would just have a sample file here of a base class uh a class that inherits from that base class and then instances of both of those and just write those over and over and over until you feel really comfortable uh with writing out those templates from scratch and um and being able to do that without a computer okay so let's move on here to number nine so number nine have python related questions ready to to ask your interviewer so it's good to have these questions prepared because uh if you feel strong in a certain area of python um then this will give you a chance to bring up those areas that you're strong in if they don't come up in the interview so for example let's say that you've been um really studying the differences between Python 2 and Python 3 and how to Port python 2 applications over to Python 3 if it doesn't come up in in the interview um at the end they're going to ask you if you any questions so just bring up uh bring up questions like um hey do you guys use Python 2 or Python 3 and also you want to be prepared for follow-up questions to your questions so don't ask a question that you're not prepared to answer follow-up questions about because um if you ask are you using python 2 or Python 3 then your interviewer may ask you oh well that's a good question we just uh moved over to Python 3 or we're thinking about moving over to Python 3 what would you recommend and why um also can you tell me some of the differences between those versions and things like that um so a couple of other examples of this um maybe you've been practicing working with uh databases in Python um you could ask them what they're using to communicate with their databases ask them if they're using SQL Alchemy um if you've been practicing unit testing with python and it didn't come up in the interview then you could ask them if they're currently testing their python codebase and or and what testing modules that they're using um so just questions like that it'll let you bring up the areas that you're most strong in and um and then they can ask you follow-up questions about that so that uh you can really end on a strong note okay and the last bit of advice here that uh I have isn't really related to python uh but you're also going to want to know the basics of other Technologies uh when you go into your interview so in today's tech industry I mean there's tons of Technology that programmers use on a daily basis and um you're going to want to know some of these Technologies and not just python so for example it'll be a huge benefit to learn Version Control uh like something like git um it'll be nice to know how to navigate through the command line and basic Linux commands um understand how databases work and how to write some basic SQL code now I know that sounds like a lot and it can sound overwhelming but you don't need to be an expert in these other techn Oles a lot of people get caught up on that and they feel like they need to know everything about everything um but just know at least know what these other Technologies are and know the basics of some of those Technologies um some people like to describe this as a t-shaped skill set and uh I'll provide a link to that in the description below but basically a t-shaped skill set means that you're advanced in a certain topic um but also that you have exposure to several other Technologies so I'd really suggest before your job interview to go back to the job description uh and see what other Technologies they list in that in that description besides Python and be sure that you at least know something about everything that's on that list and so that about does it for the uh 10 things for preparing for a python interview uh that's all the advice that I had now I do want to say that this is my own advice and um I'm sure that a lot of other people probably disagree with this or have other methods and uh and that's okay I mean the best methods for preparing for interviews and the interview process in general um it's always been constantly evolving and mutating um you know what's the norm today for the interview process might be frowned upon the next day for example Google used to ask these brain teasers that people never really liked um like for example they might ask how many pingpong balls that you could fit into a 747 Jet and to talk through your thought process as you solve that problem um now I believe that they've recently stopped doing these brain teasers and they've instead started focusing on data structures and algorithms um but really the point is that the interview process it changes over time different people have different advice for how to prepare for these interviews um so by all means don't use this video as your single resource to prepare for your python interview um I strongly believe that you should feel comfortable with everything in this list but after you've got all this stuff down then search through other resources online to prepare for that interview so that about does it for this video I hope it was useful for you guys uh if you have any questions just ask in the comment section below be sure to subscribe for future videos thank you guys for watching and good luck on your job interview

Original Description

The interview process can be very intimidating. There seems to be so much material to study and it may be difficult even knowing where to start. In this video, we will go over 10 different things you should know before going in to your first Python interview. Here are a few links I mentioned in the video: When to use a list or tuple? http://stackoverflow.com/questions/1708510/python-list-vs-tuple-when-to-use-each My video on Comprehensions: https://www.youtube.com/watch?v=3dt4OGnU5sM My video on Generators: https://www.youtube.com/watch?v=bD05uGo_sVI What is a T-Shaped Skillset? https://en.wikipedia.org/wiki/T-shaped_skills ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Corey Schafer · Corey Schafer · 51 of 60

1 Web fonts using CSS Font Face
Web fonts using CSS Font Face
Corey Schafer
2 Using Font Awesome in Desktop Applications (OS X)
Using Font Awesome in Desktop Applications (OS X)
Corey Schafer
3 Sublime Text 2: Setup, Package Control, and Settings
Sublime Text 2: Setup, Package Control, and Settings
Corey Schafer
4 ArcGIS API for JavaScript Part 1: Our First Web Map
ArcGIS API for JavaScript Part 1: Our First Web Map
Corey Schafer
5 Mac Tip: Windows' Snapping Feature on Mac with HyperDock
Mac Tip: Windows' Snapping Feature on Mac with HyperDock
Corey Schafer
6 Linux/Mac Terminal Tutorial: Creating Aliases for Commands
Linux/Mac Terminal Tutorial: Creating Aliases for Commands
Corey Schafer
7 ArcGIS API for JavaScript Part 2: Starting Templates
ArcGIS API for JavaScript Part 2: Starting Templates
Corey Schafer
8 Paver Patio Time Lapse
Paver Patio Time Lapse
Corey Schafer
9 Mac Tip: Ways to perform Screen Capturing and Screenshots
Mac Tip: Ways to perform Screen Capturing and Screenshots
Corey Schafer
10 WordPress Plugins: Imsanity
WordPress Plugins: Imsanity
Corey Schafer
11 WordPress Tips: Test your theme with Theme Unit Test and Monster Widget
WordPress Tips: Test your theme with Theme Unit Test and Monster Widget
Corey Schafer
12 Sublime Text 3: Setup, Package Control, and Settings
Sublime Text 3: Setup, Package Control, and Settings
Corey Schafer
13 Understanding Binary, Hexadecimal, Decimal (Base-10), and more
Understanding Binary, Hexadecimal, Decimal (Base-10), and more
Corey Schafer
14 Mac Tip: Adding Folder Stacks to the Dock
Mac Tip: Adding Folder Stacks to the Dock
Corey Schafer
15 CSS Tips and Tricks: Add External URLs to Print Stylesheets
CSS Tips and Tricks: Add External URLs to Print Stylesheets
Corey Schafer
16 JavaScript Arrays: Properties, Methods, and Manipulation (Part 7 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 7 of 7)
Corey Schafer
17 JavaScript Arrays: Properties, Methods, and Manipulation (Part 1 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 1 of 7)
Corey Schafer
18 JavaScript Arrays: Properties, Methods, and Manipulation (Part 5 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 5 of 7)
Corey Schafer
19 JavaScript Arrays: Properties, Methods, and Manipulation (Part 4 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 4 of 7)
Corey Schafer
20 JavaScript Arrays: Properties, Methods, and Manipulation (Part 3 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 3 of 7)
Corey Schafer
21 JavaScript Arrays: Properties, Methods, and Manipulation (Part 2 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 2 of 7)
Corey Schafer
22 JavaScript Arrays: Properties, Methods, and Manipulation (Part 6 of 7)
JavaScript Arrays: Properties, Methods, and Manipulation (Part 6 of 7)
Corey Schafer
23 Python Tutorial: if __name__ == '__main__'
Python Tutorial: if __name__ == '__main__'
Corey Schafer
24 Sublime Text Quick Tip: "Go To Definition" Click Shortcut
Sublime Text Quick Tip: "Go To Definition" Click Shortcut
Corey Schafer
25 How to quickly create favicons for the desktop, Apple/Android devices, tablets, and more
How to quickly create favicons for the desktop, Apple/Android devices, tablets, and more
Corey Schafer
26 Easily Resize Multiple Images Using Picasa
Easily Resize Multiple Images Using Picasa
Corey Schafer
27 Easily Resize Multiple Images Using the Mac Terminal
Easily Resize Multiple Images Using the Mac Terminal
Corey Schafer
28 Python Tutorial: virtualenv and why you should use virtual environments
Python Tutorial: virtualenv and why you should use virtual environments
Corey Schafer
29 Python Tutorial: pip - An in-depth look at the package management system
Python Tutorial: pip - An in-depth look at the package management system
Corey Schafer
30 Git Tutorial: Using the Stash Command
Git Tutorial: Using the Stash Command
Corey Schafer
31 How Software Engineers, Developers, and Designers can volunteer their skills
How Software Engineers, Developers, and Designers can volunteer their skills
Corey Schafer
32 Git Tutorial: Diff and Merge Tools
Git Tutorial: Diff and Merge Tools
Corey Schafer
33 Git Tutorial: Change DiffMerge Font-Size on Mac OSX
Git Tutorial: Change DiffMerge Font-Size on Mac OSX
Corey Schafer
34 Sublime Text Quick Tip: Launch Sublime Text from the Terminal
Sublime Text Quick Tip: Launch Sublime Text from the Terminal
Corey Schafer
35 Python Tutorial: str() vs repr()
Python Tutorial: str() vs repr()
Corey Schafer
36 Programming Terms: DRY (Don't Repeat Yourself)
Programming Terms: DRY (Don't Repeat Yourself)
Corey Schafer
37 Programming Terms: String Interpolation
Programming Terms: String Interpolation
Corey Schafer
38 Programming Terms: Idempotence
Programming Terms: Idempotence
Corey Schafer
39 Python Tutorial: Namedtuple - When and why should you use namedtuples?
Python Tutorial: Namedtuple - When and why should you use namedtuples?
Corey Schafer
40 Programming Terms: Mutable vs Immutable
Programming Terms: Mutable vs Immutable
Corey Schafer
41 Python Tutorial: Else Clauses on Loops
Python Tutorial: Else Clauses on Loops
Corey Schafer
42 Overview of Online Learning Resources
Overview of Online Learning Resources
Corey Schafer
43 Mac OS X Terminal Tutorial: Time-Saving Keyboard Shortcuts
Mac OS X Terminal Tutorial: Time-Saving Keyboard Shortcuts
Corey Schafer
44 Git Tutorial for Beginners: Command-Line Fundamentals
Git Tutorial for Beginners: Command-Line Fundamentals
Corey Schafer
45 Quickest and Easiest Way to Run a Local Web-Server
Quickest and Easiest Way to Run a Local Web-Server
Corey Schafer
46 Python Tutorial: Generators - How to use them and the benefits you receive
Python Tutorial: Generators - How to use them and the benefits you receive
Corey Schafer
47 Python Tutorial: Comprehensions - How they work and why you should be using them
Python Tutorial: Comprehensions - How they work and why you should be using them
Corey Schafer
48 Chrome Quick Tip: Quickly Bookmark Open Tabs for Later Viewing
Chrome Quick Tip: Quickly Bookmark Open Tabs for Later Viewing
Corey Schafer
49 Programming Terms: Combinations and Permutations
Programming Terms: Combinations and Permutations
Corey Schafer
50 Git Tutorial: Difference between "add -A", "add -u", "add .", and "add *"
Git Tutorial: Difference between "add -A", "add -u", "add .", and "add *"
Corey Schafer
Preparing for a Python Interview: 10 Things You Should Know
Preparing for a Python Interview: 10 Things You Should Know
Corey Schafer
52 SQL Tutorial for Beginners 1: Installing PostgreSQL and Creating Your First Database
SQL Tutorial for Beginners 1: Installing PostgreSQL and Creating Your First Database
Corey Schafer
53 SQL Tutorial for Beginners 2: Creating Your First Table
SQL Tutorial for Beginners 2: Creating Your First Table
Corey Schafer
54 SQL Tutorial for Beginners 3: INSERT - Adding Records to Your Database
SQL Tutorial for Beginners 3: INSERT - Adding Records to Your Database
Corey Schafer
55 Linux/Mac Terminal Tutorial: Navigating your Filesystem
Linux/Mac Terminal Tutorial: Navigating your Filesystem
Corey Schafer
56 Python: Ex Machina Easter Egg - Hidden Message within the Code
Python: Ex Machina Easter Egg - Hidden Message within the Code
Corey Schafer
57 Mac Tip: New Split Screen Feature in El Capitan
Mac Tip: New Split Screen Feature in El Capitan
Corey Schafer
58 Setting up a Python Development Environment in Eclipse
Setting up a Python Development Environment in Eclipse
Corey Schafer
59 Git Tutorial: Fixing Common Mistakes and Undoing Bad Commits
Git Tutorial: Fixing Common Mistakes and Undoing Bad Commits
Corey Schafer
60 SQL Tutorial for Beginners 4: SELECT - Retrieving Records from Your Database
SQL Tutorial for Beginners 4: SELECT - Retrieving Records from Your Database
Corey Schafer

This video prepares viewers for a Python interview by covering essential topics such as basic control flow, common interview problems, and database communication. It provides practical steps and tools for preparation, including practicing problems on a whiteboard and using SQL Alchemy for database communication. By following these steps, viewers can improve their chances of success in a Python interview.

Key Takeaways
  1. Practice problems on a whiteboard or paper
  2. Write code examples for basic control flow in Python
  3. Discuss past projects and use of Python
  4. Write a program that cleans up folders on your computer or moves files around
  5. Solve common interview problems like FizzBuzz and Fibonacci sequence
  6. Use list comprehensions and generators to create lists and sequences
  7. Write a class from scratch using object-oriented programming basics
  8. Use SQL Alchemy for database communication
  9. Familiarize yourself with git, Linux, and SQL
💡 A T-shaped skill set, being advanced in one topic and having exposure to several others, is valuable for success in a Python interview.

Related AI Lessons

Up next
Retracing It All With My Son
Ginny Clarke
Watch →