Posts

Showing posts with the label python

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...

Open Source: The Invisible Engine of Your Daily Life

Image
Open Source Software (OSS) What is Open Source Software (OSS)? Did you know that most of the technology you touch every single day isn't built behind locked doors? It’s powered by Open Source Software (OSS)—collaborative, transparent code written by global communities that literally runs the modern world. From the phone sitting in your palm to the remote servers delivering this blog post to your screen, open source is everywhere. It is the digital bedrock of modern civilization. Here are a few heavy hitters you encounter every day without even realizing it: Android: The world’s most popular mobile operating system is built directly on top of the open-source Linux Kernel. Web Servers (Apache & Nginx): The true powerhouses of the internet. Most of the websites on the web serve their content using open-source web servers. Social Media: Tech giants rely heavily on open-source frameworks and databases to process billions of user interactions in real time. Search E...

Stop Coding, Start Building: The 10-Minute Guide to Your Own AI Chatbot

Image
No-Code AI Chatbot Creation Guide Building an AI chatbot used to require writing custom scrapers, managing vector databases, writing embedding logic, and wiring up LLM APIs manually. Today, Google Cloud’s Vertex AI Agent Builder lets you deploy a production-ready RAG (Retrieval-Augmented Generation) chatbot grounded in your own documents—in under 10 minutes, with zero code. Whether you are building an internal knowledge base assistant, a customer support bot, or an enterprise document Q&A system, here is how to set it up step-by-step. 🏗️ How It Works (The Architecture in 30 Seconds) Instead of relying on general LLM knowledge that can hallucinate, your AI chatbot uses Grounded RAG: [ Your PDFs / Docs ] ➔ [ Google Cloud Storage ] ➔ [ Vertex AI Data Store ] ➔ [ Agent Builder Chatbot ] Storage: Your business documents (PDFs, TXT, HTML) live securely in a Cloud Storage Bucket. Indexing: Vertex AI ingests, chunks, and creates vector embeddings of your files aut...

CS50 Python , Nutrition Facts Table

Image
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. Below is a sample dataset 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 fruits = [ {'name': 'Apple', 'calories': 130}, {'name': 'Avocado', 'calories': 50}, {'name': 'Banana', 'calories': 110}, {'name': 'Cantaloupe', 'calories': 50}, {'name': 'Grapefruit', 'calories': 60}, {'name': ...

Python Course for Beginners – Learn to Code Online!

Image
ابدأ رحلتك في عالم البرمجة من الصفر حتى احتراف بناء التطبيقات بلغة بايثون أهلاً بك في المنهج الشامل والمُفصّل لتعلم لغة Python (بايثون) للمبتدئين! إذا كنت تطمح لدخول عالم تطوير البرمجيات، تحليل البيانات، أو الأتمتة والأمن السيبراني، فهذا المسار التدريبي صُمم خصيصاً ليأخذ بيدك خطوة بخطوة من الصفر المباشر وحتى بناء مشاريع عمل قابلة للتطبيق. تعتبر لغة بايثون اليوم الخيار الأول عالمياً للراغبين في تعلم البرمجة نظراً لسهولة قراءتها وقوة مكتباتها. في هذا المستوى الأول (Level 01 - Beginner)، ستتعلم المفاهيم الأساسية وتطبقها مباشرة عبر تمارين عملية ومشاريع كاملة. لماذا تبدأ برحلة تعلم بايثون؟ تتميز بايثون بعدة خصائص تجعلها الاستثمار الأفضل لوقتك في مسارك البرمجي: بنية برمجية بسيطة: تُكتب أكواد بايثون بأسلوب قريب جداً من اللغة الإنجليزية اليومية، مما يقلل من تعقيدات بناء الكود. مرونة واستخدامات واسعة: تُستخدم في تطوير مواقع الويب، أتمتة المهام اليومية، الذكاء الاصطناعي، وتحليل البيانات. العمل بدون تثبيت مبدئي: يمكنك البدء بتجربة الأكواد مباشرة من متصفحك عب...

15 Python Builtin-Functions You Need to Master as a Beginner

Image
  What are the important 15 Python Builtin-Functions You Should Know as a Beginner? 15 Python Builtin-Functions You Should Know What should you do as a Python Beginner? As a beginner in Python programming, it's important to familiarize yourself with the built-in functions that are essential for writing efficient and clean code. In this article, we will explore 15 Python built-in functions that you need to master in order to become proficient in the language. You will notice in the examples below - most of them at least - that we did not give you the output. Use the keyboard and apply them on a file, and let's call it main.py. You are a programmer now, not a normal person to read and watch only. And now, let's begin... 1. `print()`: This function is used to display the output of a program. It is a fundamental function that allows you to showcase results and information to the user. Example: print("Hello, World!") name = "Alice" print("Hello,", n...

Python : Generate Fake Data

Image
Generating Fake Data using Python and Faker Library Fake Data with Python Code Explanation and Usage: The provided code showcases how to generate fake data using Python and the Faker library. Here's a breakdown of the code and its usage: 1- Importing Dependencies: The code begins by importing the necessary modules: csv and Faker. The csv module is used to handle CSV file operations, while the Faker module is responsible for generating fake data. 2- Initializing Faker and Data List: The code creates an instance of the Faker class and initializes an empty list called data. This list will store the generated fake data to use it later in the file that we will create. 3- Generating Fake Data: A for loop is used to iterate "n" times, generating fake data for each iteration. The generated data is stored as a dictionary with keys representing the headers ('Name', 'Date of Birth', 'Email', 'Phone Number', 'Address') and values generated by ...

python | What is a for Loop?

Image
Mastering the Python for Loop: A Beginner’s Guide for loop In Python, the for loop is an essential tool for automation. It allows you to execute a block of code repeatedly for every item in a sequence—whether that’s a list of names, a range of numbers, or rows in a database. The Anatomy of a for Loop Before we look at the code, let's break down the syntax: The Keyword: Every loop starts with for. The Iterator Variable : A temporary name (like x or item) that holds the value of the current element. The Sequence : The collection you want to travel through (a list, string, or range). The Colon : Signals the start of the loop body. Indentation : The "action" part of the loop must be indented to the right. Understanding the range() Function As seen in our initial example, range(5) is a common way to generate a sequence: for x in range(5):     print(x) Output : 0, 1, 2, 3, 4 Key Takeaway :Python is zero-indexed . This means range(5) starts at 0 and stops before 5. It generates...

CS50 Python | Week 6 | File I/O | Problem Set 6 | Scourgify

Image
Scourgify Pset 6 - scourgify The Challenge: The challenge involves cleaning and reformatting data from a CSV file containing student information. The data is initially structured with names and houses in a single column, separated by a comma and space, and enclosed in double quotes. The goal is to split the names into first and last names and create a new CSV file with columns for first name, last name, and house. The program, implemented in a file called scourgify.py, expects two command-line arguments: the name of an existing CSV file to read as input and the name of a new CSV file to write as output. The program uses the csv module, specifically DictReader and DictWriter, to handle the CSV operations. Additionally, the program performs error handling: If the user does not provide exactly two command-line arguments, the program exits with an error message: "Too few command-line arguments." If the specified input file cannot be read, the program exits with an error message: ...

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...

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 ...

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:...

Popular Posts

PROJECT MAVEN | The Architecture of Algorithmic Warfare

Open Source: The Invisible Engine of Your Daily Life

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

Python 4.3.1.10 LAB: Converting fuel consumption

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