TGViewer
Python Projects & Free Books Python Projects & Free Books @pythonfreebootcamp · 40.6K subscribers
Post #1080 1.12K
Python Interview Questions – Part 1

1. What is Python?
Python is a high-level, interpreted programming language known for its readability and wide range of libraries.

2. Is Python statically typed or dynamically typed?
Dynamically typed. You don't need to declare data types explicitly.

3. What is the difference between a list and a tuple?

List is mutable, can be modified.

Tuple is immutable, cannot be changed after creation.


4. What is indentation in Python?
Indentation is used to define blocks of code. Python strictly relies on indentation instead of brackets {}.

5. What is the output of this code?

x = [1, 2, 3]
print(x * 2)

Answer: [1, 2, 3, 1, 2, 3]

6. Write a Python program to check if a number is even or odd.

num = int(input("Enter number: "))
if num % 2 == 0:
print("Even")
else:
print("Odd")

7. What is a Python dictionary?
A collection of key-value pairs. Example:

person = {"name": "Alice", "age": 25}

8. Write a function to return the square of a number.

def square(n):
return n * n


Coding Interviews: https://whatsapp.com/channel/0029VammZijATRSlLxywEC3X

ENJOY LEARNING 👍👍
  • 👍 1
More from @pythonfreebootcamp
  1. Oct 2, 2026Data Analytics A-Z
  2. Sep 25, 2026🎯 GigaChat 3.5 Reasoning: 5 Key Features 1️⃣ Advanced Reasoning: Explores multiple step-b…
  3. Sep 19, 2026Let’s dive into our first mini project using Python: Project 1: Number Guessing Game 🎯 Go…
  4. Sep 14, 2026Learn AI for Free in 2026👇 1/ Kaggle Learn: https://www.kaggle.com/learn 2/ Anthropic Lea…
  5. Aug 7, 2026Roadmap to become a data analyst 1. Foundation Skills: •Strengthen Mathematics: Focus on s…
  6. Jul 31, 2026🐍 Python Roadmap 1️⃣ Basics: 📝📜 Syntax, Variables, Data Types 2️⃣ Control Flow: 🔄🤖 If…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →