TGViewer
Coding Interview Resources Coding Interview Resources @crackingthecodinginterview · 52.2K subscribers
Post #1780 1.95K
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 👍👍
  • 👍 5
  • ❤ 1
More from @crackingthecodinginterview
  1. Oct 13, 2026𝗧𝗢𝗣 𝗙𝗥𝗘𝗘 𝗖𝗢𝗨𝗥𝗦𝗘𝗦 𝗧𝗢 𝗕𝗢𝗢𝗦𝗧 𝗬𝗢𝗨𝗥 𝗦𝗞𝗜𝗟𝗟𝗦 𝗜𝗡 𝟮𝟬𝟮𝟲! Explor…
  2. Oct 12, 2026🚀 𝗪𝗵𝗶𝗰𝗵 𝗧𝗲𝗰𝗵 𝗦𝗸𝗶𝗹𝗹 𝗪𝗶𝗹𝗹 𝗬𝗼𝘂 𝗠𝗮𝘀𝘁𝗲𝗿 𝗶𝗻 𝟮𝟬𝟮𝟲? Want to buil…
  3. Oct 9, 2026🔥 SQL Interview Case Studies (Advanced Business Scenarios) 💯 🧠 Case Study 1: Find Repea…
  4. Oct 9, 2026🇮🇳 𝗚𝗢𝗩𝗘𝗥𝗡𝗠𝗘𝗡𝗧 𝗢𝗙 𝗜𝗡𝗗𝗜𝗔 — 𝗔𝗜𝗖𝗧𝗘 𝗜𝗡𝗧𝗘𝗥𝗡𝗦𝗛𝗜𝗣𝗦 𝟮𝟬𝟮𝟲 🚀…
  5. Oct 8, 2026🎓 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗙𝗥𝗘𝗘 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 𝘄𝗶𝘁𝗵 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗲𝘀! 🚀🔥 Upgr…
  6. Oct 7, 2026🚀 DSA Topics Every Programmer Should Know 💻🔥 📦 1. Arrays ✔ Traversal ✔ Searching ✔ Sor…
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 →