Day 4 : Comments, Escape Sequences & Print Statement W elcome back to Day 4 of our Python journey! Today, we will dive deeper into three important topics: comments , escape sequences , and the print statement . Understanding these concepts is essential for writing clear and effective code. Let’s explore them in detail! What are Comments? Definition : Comments are notes that you write in your code. They help explain what the code does. Python ignores these comments, so they don't affect how your program runs. Comments are helpful for anyone who reads your code, including you! Comments are very useful for: Explaining complex logic Making the code easier to read Providing context for future reference Types of Comments 1. Single-Line Comments : These comments are written on one line and start with the # symbol. Python will ignore everything after the # on that line. Example: In this example, # This is a single-line comment explains that the line below it prints "Hello,...
I’m Samanta Das, and I’ve started an exciting 100-day journey to learn Python programming. I have started a 100-day journey to learn Python programming, and I will share easy lessons every day. This blog is for everyone, from beginners to advanced learners. Along with Python, I will also talk about new technology like AI, GEN AI, and more. My goal is to make learning easy and fun. Join me as we explore Python and technology together, step by step!