Python Interview Questions and Answers
Python Interview Questions and Answers
๐น 1. What is Python?
Python is a high-level programming language used for web development, AI, and data science.
๐น 2. What are data types?
Integer, Float, String, Boolean
๐น 3. What is a list?
A collection of items:
my_list = [1, 2, 3]
๐น 4. What is a function?
A block of code that performs a task.
๐น 5. Difference between list and tuple?
List → Mutable
Tuple → Immutable
๐งพ Conclusion
Practicing these questions helps in cracking interviews easily.
Comments
Post a Comment