Mastering Loops and Conditionals: A Beginner's Guide