Posts

Showing posts from 2020

Featured Posts

CS50 Python , Nutrition Facts Table

Image
Nutrition Facts: Python Practice for Beginners Nutrition Facts Table for Python Practice Welcome to this comprehensive guide for Python beginners! If you are learning how to work with lists, dictionaries, and loops, this post will help you build practical skills using a real-world example: nutrition facts for fruits. Understanding how to organize and manipulate data is a key part of programming, and this exercise will give you hands-on experience. Below is a sample table of fruits and their calorie values, formatted as a Python list of dictionaries. This structure is ideal for coding exercises, projects, or even building your own nutrition calculator. You can expand this list, add new fruits, or use it as a foundation for more advanced Python tasks. Python List of Dictionaries Example: fruits = [ {'name': 'Apple', 'calories': 130}, {'name': 'Avocado', 'calories': 50}, {'name': 'Banana', 'ca...

Parts of Speech - Summary

Image
Parts of Speech Parts of Speech Why Grammar? Grammar is the system of the language. It classifies words, their nature, usage, and forms. Do you want to speak clearly and effectively? Maybe professionally? If yes, bear with me 👂 Me: No one likes grammar, but, can you build a house in the air?  You: hummm 🤔, no. Me: When you learn a new language, please DO NOT start with grammar. You: What? Is it you saying this? Me: Yes, It's ME who is telling you this. So, you watched an English video, listened to an English radio channel, watched Movies, maybe loved listening to some  American or English songs, read a lot, but you still CAN NOT - or it is HARD to - Speak or Write correctly. In other words, you cannot produce language.  Well, how to produce a correct language? The answer is: Grammar, Sir! To help you connect the dots and solve the puzzle of Grammar - we will make a plan, a map, a rout, a tree, or call it what you like 👀 Connecting dots "Parts of Speech"  are calle...

Articles A - An - The - No article + Test

Image
Articles A - An - The - no article A, An, The, or no article? Let's start by knowing the meaning and difference between definite and indefinite : Indefinite : means unknown, vague or not clear, undetermined, unspecified or non-specific → ( a , an ) Definite  : means  specific, certain, clear, clearly stated, known  → ( the ) Before we dig deeper, let's see below examples: - My daughter needs  a   p resent for her birthday. (Any present, not a specific one) - I want an a pple. (It doesn't matter, just any apple) - Which apple do you like? I want the red one. (Here we talk about a specific exact apple - the red one) - He wants a r ed apple. (Even we said "red apple", but using " a " means " any red apple " - not a specific one. 💡 an a pple but a r ed apple. (" a " comes before Vowel Sounds . " An " comes before Consonant Sounds . Summary of the rule: " A, An, The " are articles (aka. modifiers ) that come be...