Python Full Stack Interview QA
Python Full Stack Interview QA
A variable is a named location used to store data in memory. Python is dynamically typed, so you don't need to declare
the type.
int, float, str, bool, list, tuple, set, dict are the common built-in data types.
Functions are blocks of code that perform a task. Use 'def' keyword: def greet(): print('Hello')
Lists are mutable, tuples are immutable. Tuples are faster and use less memory.
6. What is recursion?
A function calling itself. Useful for problems like factorial, Fibonacci, etc.
9. What is an API?
API (Application Programming Interface) allows two applications to talk. In web, REST APIs use HTTP methods to
send/receive data.
Python Full Stack Interview Preparation - Q&A
It allows interaction with the database using Python classes instead of raw SQL queries.
Git is a version control system to manage code versions, collaborate, and track changes.
localStorage persists even after browser close, sessionStorage clears when the tab is closed.