Practise Python online. With pandas and NumPy.

35 interview questions, Easy to Hard: core Python, pandas, NumPy and coding tasks. Write the code, run it, check it. Free, in your browser, no sign-up.

Question 1 of 35

Easy

What is the difference between mutable and immutable types?

Strings are immutable. With city = "pune", make result a tuple of what city.upper() gives and what city still holds after it.

solution.pyPython 3.14
city = "pune"

result = 

Your result shows here.

Run your code to see what it prints and its result, then check it against the answer.

How the lab works

  • Real Python

    Python 3.14 with pandas 3 and NumPy 2, compiled to run inside your browser. Your code behaves as it would on your laptop, errors included.

  • Checked by its result

    Check my answer runs your code and ours from the same start and compares what each gives. Any code that gets it right counts, not only ours.

  • Stays in your browser

    Your code never leaves your device, and your progress is kept on it. Free, with no sign-up and no limit.

What’s inside? Python’s standard library, NumPy and pandas. Each answer comes with the guide’s explanation: Python interview questions, with answers.