Learn how to write a Python program to check if a number is prime. This guide includes beginner-friendly code and step-by-step explanations for easy understanding.