Hello once again, it's been a long time since I have written an article because I was busy in finding something that will help me to pursue my goal to become a Developer Advocate. And guess what I found one course that is totally awesome. It's called the Harvard CS50 course, There are more than one course playlist like CS50 Python, CS50 R, CS50 Business, CS50x, CS50 Web, CS50 2D, CS50 AI, CS50 Cybersecurity, CS50 for Lawyers, CS50 Scratch, CS50 SQL. You can find them on their official website.
Today, we are going to dive into how I tackled the very first problem in Problem Set 0: "Indoor Voice" (indoor.py).
**_
_**So moving on to our today's main goal to How I complete the 1st problem in the problem set 0. If you are a python guy or girl trust me it's pretty easy to solve this type of problems instantly but if you are not so don't get so worked up because that's why you are here. As long as I am here so don't fear. Let me tell you a secret 🤫, I was under the wrong impression that it's a child's play to solve this problem but I was so naive that I underestimated that problem and as the demo says I printed out the exact sentences that they told me to do but that's wasn't the real problem and I actually write that and submitted and after some time I realised that I have done a mistake very terrible that anyone could read and laugh at me as I write that code. So, this article is for you all to saving you from that same mistake that I have done in my past.
So, In the instructions there was written that everything you written in the input function in the lower or upper cases no matter what you type in that has to be printed out in the lower case, Numbers don't have case so, .lower() safely ignores them. But I didn't read all of the instructions and I fail. Then we can correct that mistake from the syntax called .lower() it's only work is to convert all the upper cases Alphabets into lower cases. And if you want you can also use a syntax called .strip() it's work is to remove any whitespaces in the input function.
.lower(): This converts all uppercase alphabets into lowercase.
.strip(): As a bonus tip, you can chain this method to remove any accidental leading or trailing whitespace from the user's input.
.upper(): This converts all lowercase alphabets into uppercase.
.title(): This capitalizes the first letter of every word. (e.g., "this is cs50" becomes "This Is Cs50").
And that's it. Our today's article is over I will see you in the next article soon. So, Good Day till then.......
If you have any doubts feel free to drop a comment in the comment box below. And i have also uploaded the lecture video of 20 min on my YouTube channel for you so be my guest to open and watch that too.
And here's my GitHub URL for an example of how to write that. [[https://github.com/dilesh596\](https://github.com/dilesh596%5C)]