Posts

Featured Posts

Start Your Journey with Linux Command Line

Image
Start Your Journey with the Linux Command Line: A Comprehensive Guide Whether you are a software developer, system administrator, analytics engineer, or cybersecurity enthusiast, mastering the Linux command line (terminal) is one of the single most effective skills you can acquire. While graphical user interfaces (GUIs) offer visual convenience, the command line interface (CLI) delivers unmatched speed, fine-grained system control, and seamless automation capabilities. Linux Command Line This tutorial breaks down more than 35 core Linux commands into structured, practical modules complete with real-world examples, flags, and command-chaining techniques. By building muscle memory around these fundamentals, you will elevate your daily technical workflow from basic navigation to advanced command orchestration. Why Learn the Command Line? The Linux CLI is not merely a legacy tool—it remains the foundation of modern cloud architecture, server maintenance, DevOps pipelines, and enterp...

How to use Python Virtual Environment - venv

Image
 Virtual Environment python virtual environment -venv What is Virtual Environment? Virtual Environment - we will call it (Virtualenv) - is an isolated environment where you can download packages away from python system packages. This article is about venv which is a built-in python package, and for windows users. How to simply use virtual environment? * To create a virtual Environment folder: >> python -m venv folder_name -> It's a good practice/common convention to add venv to the folder name to differentiate it from other folders. OR: >> python -m venv Exsisting_folder_name\new_venv_folder_name * To activate/move inside the Virual Envirnment folder: >> folder_name\Scripts\activate.bat OR: >> Exsisting_folder_name\new_venv_folder_name\Scripts\activate.bat - You will notice the name of the Virtual Environment folder in the beginning of the folder path.  - Now, you're working on an isolated folder which has only the default python global version ins...

Parts of Speech - Verbs

Image
What is a Verb? Parts of Speech - Verbs A Verb (v) is a word that shows action, occurrence, or state of being. The Verb describes what the subject (Noun) is doing. I run everyday because I love to be in a good shape. She works at a factory My car needs an oil change. The wealthy man bought a mansion. He apologized to her many times. How many types of Verbs and what are they? There are 11 common types of verbs - some people say they are 7. The main 7 Types of Verbs: 1- Action Verbs: Words that describe actions. Action verbs can also be called Dynamic or Physical Verbs. Action Verbs Examples of Action Verbs: work - chase - run - play - help - swim - jump - write - ignore - try Please open the door. I always laugh when I hear his jokes. 2- Stative Verbs: Stative or state verbs are words which describe thoughts, emotions, feelings, opinions, senses, possessions, perceptions, measurement,.. . stative verbs in English Examples of Stative Verbs: want - own - have - be - need - love 🔔...

Python LAB 2.8.1.4 Reading ints safely

Image
 Reading ints safely Reading ints safely The Challenge improving the student's skills in defining functions; using exceptions in order to provide a safe input environment. Scenario Your task is to write a function able to input integer values and to check if they are within a specified range. LAB Sandbox The function should: accept three arguments: a prompt, a low acceptable limit, and a high acceptable limit; if the user enters a string that is not an integer value, the function should emit the message Error: wrong input, and ask the user to input the value again; if the user enters a number which falls outside the specified range, the function should emit the message Error: the value is not within permitted range (min..max) and ask the user to input the value again; if the input value is valid, return it as a result. Test data Test your code carefully. This is how the function should react to the user's input: Enter a number from -10 to 10: 100 Error: the value is not within ...

يوم التأسيس - يوم بدينا

Image
 يوم التأسيس يوم التأسيس السعودى - 300 عام تحتفل المملكة الهربية السعودية اليوم الموافق الثلاثاء 22 فبراير 2022 بكرى "يوم التأسيس" تحت شعار "يوم بدينا " , والذى يصادف ذكرى تأسيس الدولة السعودية الأولى قبل 3 قرون (300 عام) على يد الإمام محمد بن سعود يوم التأسيس السعودى ويأتي الاحتفاء بهذه الذكرى، بعد أن أصدر الملك سلمان بن عبدالعزيز آل سعود   أمرا ملكيا في يناير الماضي يقضي باعتبار 22 فبراير من كل عام يوماَ للتأسيس، ليتم الاحتفاء بهذه المناسبة لأول مرة وسط احتفالات وفعاليات تعم المملكة وتؤكد على الجذور التاريخية للبلاد. وكان الإمام محمد بن سعود قد أسس الدولة السعودية الأولى في منتصف عام 1139هـ (1727م) والتي استمرت إلى عام 1233هـ (1818م)، وعاصمتها "الدرعية". وأصبحت هذه مدينة  عاصمة لدولة مترامية الأطراف، ومصدر جذب اقتصادي واجتماعي وفكري وثقافي، وتحتضن على ترابها معالم أثرية، إضافة إلى أن النظام المالي للدولة وصف بأنه من الأنظمة المتميزة من حيث الموازنة بين الموارد والمصروفات. وقد هاجر كثير من العلماء إلى "الدرعية" لتلقي التعليم والتأليف الذي كان سا...

Python 2.5.1.10 LAB: Find a word!

Image
 Find a Word in a Combination of Characters Find a word game Objectives improving the student's skills in operating with strings; using the find() method for searching strings. Scenario Let's play a game. We will give you two strings: one being a word (e.g., "dog") and the second being a combination of any characters. Your task is to write a program which answers the following question: are the characters comprising the first string hidden inside the second string? For example: if the second string is given as "vcxzxduybfdsobywuefgas", the answer is yes; if the second string is "vcxzxdcybfdstbywuefsas", the answer is no (as there are neither the letters "d", "o", or "g", in this order) Hints: you should use the two-argument variants of the pos() functions inside your code; don't worry about case sensitivity. Test your code using the data we've provided. Test data Sample input: donor Nabucodonosor Sample output:...

Python 2.5.1.9 LAB: The Digit of Life

Image
 The Digit of Life The digit of life Life Path Number Calculator To know your life path number, You need to enter your birth date as numbers only to calculate your life path number. You should add the digits of the month, day, and year until you arrive at a single digit number. How digit of life  is calculated Let's see the lab question. Objectives improving the student's skills in operating with strings; converting integers into strings, and vice versa. Scenario Some say that the Digit of Life is a digit evaluated using somebody's birthday. It's simple - you just need to sum all the digits of the date. If the result contains more than one digit, you have to repeat the addition until you get exactly one digit. For example: 1 January 2017 = 2017 01 01 2 + 0 + 1 + 7 + 0 + 1 + 0 + 1 = 12 1 + 2 = 3 3 is the digit we searched for and found. Your task is to write a program which: asks the user her/his birthday (in the format YYYYMMDD, or YYYYDDMM, or MMDDYYYY - actually, the ...

Python 2.5.1.8 LAB: Anagrams

Image
 Anagrams Anagram Listen = Silent [1] An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.[1] For example, the word binary into brainy and the word adobe into abode. The original word or phrase is known as the subject of the anagram. Any word or phrase that exactly reproduces the letters in another order is an anagram. Now, lets see the lab question. Scenario An anagram is a new word formed by rearranging the letters of a word, using all the original letters exactly once. For example, the phrases "rail safety" and "fairy tales" are anagrams, while "I am" and "You are" are not. Your task is to write a program which: asks the user for two separate texts; checks whether, the entered texts are anagrams and prints the result. Note: assume that two empty strings are not anagrams; treat upper- and lower-case letters as equal; spaces are not taken into acc...

Popular Posts

PROJECT MAVEN | The Architecture of Algorithmic Warfare

Data Analysis Roadmap 2026: From Excel Lover to Python-Powered Analyst

Open Source: The Invisible Engine of Your Daily Life

Python for Windows Beginners: Build Your First Automated Workflow in 10 Minutes

Python 4.3.1.10 LAB: Converting fuel consumption