Skip to main content
Home › Blog › #beginner
Tag

#beginner

20 articles
What is the difference between a Python module and a package?

A module is a single .py file containing Python code. A package is a directory containing multiple modules and an __init__.py file. Packages allow organizing related modules into a hierarchical…

🏷️
What is the difference between classification and regression?

Classification predicts a category (discrete output). Regression predicts a continuous numerical value.

🏷️
What is an f-string in Python and why is it preferred over older formatting methods?

F-strings (formatted string literals) are the modern Python way to embed expressions inside strings using f’text {expression}’. They are faster more readable and less error-prone than % formatting or str.format().

🏷️
What is the difference between a list and a tuple in Python?

Lists are mutable (changeable); tuples are immutable (fixed). Use tuples for data that should not change.

🏷️
What is a neural network and how does it learn?

A neural network is a series of connected layers of mathematical functions (neurons) that transform inputs into outputs. It learns by adjusting the connection weights using backpropagation — computing how…

🏷️
What is the difference between ‘break’ ‘continue’ and ‘pass’ in Python loops?

‘break’ exits the loop entirely. ‘continue’ skips the current iteration and moves to the next. ‘pass’ does nothing — it is a placeholder.

🏷️
Can you explain how to create a simple line plot using Matplotlib, and what basic parameters you might use?

To create a simple line plot in Matplotlib, you can use the plt.plot() function. Basic parameters include x and y coordinates to specify the data points, as well as optional…

🏷️
What is a training set validation set and test set — and why do you need all three?

Training set is used to fit the model. Validation set is used to tune hyperparameters and select the best model. Test set is held out completely and used only once…

🏷️
2,000 Interview Questions and Answers PDF cover
Developer Interview Kit · PDF

2,000 Interview Questions & Answers, in one PDF

  • Short answers, in-depth explanations, common mistakes and follow-ups
  • 89 topics, from Beginner to Architect, with a clickable contents list
  • 226 extra questions that are not on this website
  • Free Bonus Pack: 30-day study plan, behavioral questions, salary scripts
$7.99 one-time · instant email delivery
260 Developer Learning Paths cover
Also available: 260 Developer Learning Paths $4.99 Week-by-week roadmaps for 16 career tracks (Python, React, Java, DevOps, SQL, AI and more), with a progress tracker on every path. See what's inside →

Get both books for $9.99 (save $2.99):

The material stays free to read online. This is the organised, offline, print-ready PDF edition. Secure payment by PayPal; your personal download link is emailed after payment is confirmed. Digital product, no shipping.