Posts

Showing posts with the label بايثون

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

بايثون: مشروع لعبة هانج مان كامل Hangman Game with Python

Image
 تعلم صنع لعبة Hangman باستخدام Python hangman game made with python مرحبًا بكم! في هذا المنشور, سنتعلم كيفية صنع لعبة Hangman (المشنقة, أو التخمين) باستخدام لغة البرمجة بايثون Python. لعبة Hangman هي لعبة تخمين الكلمات، حيث يحاول اللاعب تخمين الكلمة حرفًا بحرف قبل أن يكمل شكل الرجل المشنوق أو شكل المشنقة أو المقصلة. سيناريو لعبة Hangman أو Guessing Game: تبدأ اللعبة بظهور تعريف للكلمة Definition يتم قرائته من ملف json يتم حفظه في نفس مكان ملف الكود (نفس الفولدر) ثم الكلمة لكن كل حرف مستبدل ب "  -  ". بناء علي تعريف الكلمة, يتم البدء في تخمين الحروف. في حالة أن الحرف هو إحدي حروف الكلمة, يظهر الحرف مكان ال " - ". كل محاولة خطأ تقوم بإنقاص عدد المحاولات المتبقية.  اسم ملف الكلمات هو words.json, لذلك سنستدعي مكتبة json بالإضافة إلي مكتبة random والتي ستختار كلمات بشكل عشوائى من ملف words.json. اذا كان ملف الكلمات فى نفس مكان ملف اللعبة, نكتب اسم الملف بشكل مباشر. اذا كان ملف الكلمات في مكان آخر, يجب كتابة ال path بالكامل الخاص بالملف. استيراد المكتبات في البداية، نستو...

فهم أنواع البيانات العددية في بايثون: الأعداد الصحيحة والأعداد العشرية

Image
أنواع البيانات العددية في بايثون الأعداد الصحيحة والأعداد العشرية نظرة علي الأعداد الصحيحة (Integers) والأعداد العشرية (Floats): الأعداد الصحيحة (Integers): هي أرقام بدون جزء كسري. يمكن أن تكون موجبة أو سالبة أو صفر. لا تحتوي على فواصل. أمثلة: 1، 2، 3، -4، 0. العمليات الحسابية: الجمع، الطرح، الضرب، القسمة. أمثلة:  x = 5 y = 15 print ( f 'SUM: { x + y } ' ) # الجمع = 20 print ( f 'SUBTRACTION: { x - y } ' ) # الطرح = -10 print ( f 'MULTIPLICATION: { x * y } ' )   # الضرب = 75 print ( f 'DIVISION: { x / y } ' ) # القسمة = 0.3333333333333333 print ( f 'MODULUS: { x % y } ' ) # الباقي = 5 print ( f 'EXPONENTIATION: { x ** y } ' ) # المربع = 9765625 print ( f 'FLOOR DIVISION: { x // y } ' ) # القسمة الصحيحة = 0 الأعداد العشرية (Floats): هي أرقام تحتوي على جزء كسري. يمكن أن تكون موجبة أو سالبة أو صفر. يتم كتابة الجزء الكسري بعد النقطة العشرية. أمثلة: 1.5، 2.75، -3.14، 0.0. العمليات الحسابية: الجمع، الطرح، الضرب، القسمة...

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