Posts

Showing posts from 2024

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

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

Python Course for Beginners – Learn to Code Online!

Image
 Complete Python Tutorial for Beginners: Step-by-Step Guide Python Online Course Why Learn Python? Are you ready to take your first step into the world of programming? Our Python Course for Beginners is designed to help you get started with coding in a fun, interactive, and easy-to-understand way. Whether you're completely new to programming or looking to expand your skill set, this online course will guide you through the essentials of Python, one of the most popular programming languages today. What You Will Learn: Basic Python Syntax & Fundamentals Variables, Loops, and Conditional Statements Functions and Data Structures Error Handling and Debugging Hands-on Coding Exercises and Projects Course Details: Format: Online via Google Meet Duration: 4 Weeks (8 Sessions) Schedule: Tuesdays and Thursdays, 7:00 PM - 8:30 PM (GMT) Cost: First Session Free! Then, $2 per hour. Don’t miss out on the opportunity to kickstart y...

بث مباشر: مباراة مصر و فرنسا في أولمبياد فرنسا 2024

Image
 مباراة مصر وفرنسا بث مباشر مصر وفرنسا في نصف نهائي الاوليمبياد أحداث المباراة يتساءل الكثيرون عن مباراة مصر وفرنسا في أولمبياد فرنسا 2024.UTC. يستعد المنتخب الأولمبي المصري، بقيادة المدير الفني شوقي غريب، لمواجهة فرنسا في نصف نهائي دورة الألعاب الأولمبية التي تقام في باريس وتستمر حتى 11 أغسطس الجاري. موعد المباراة: تقام مباراة مصر وفرنسا في العاشرة مساءً بتوقيت باريس، على ملعب بارك أولمبيك ليون [[1]]. التشكيل المتوقع للمنتخب المصري: من المتوقع أن يدفع المدير الفني شوقي غريب بالتشكيل التالي في مباراة نصف النهائي: حمزة علاء في حراسة المرمى. عمر فايد وحسام عبد المجيد وكريم الدبيس ومحمد طارق في الدفاع. محمد النني ومحمد شحاتة وكوكا في الوسط. زيزو وإبراهيم عادل وحسام فيصل في الهجو. مشوار المنتخب المصري في الأولمبياد: للوصول إلى نصف النهائي، صعد المنتخب المصري على حساب باراغواي في ربع النهائي، حيث تعادل الفريقان في الوقت الأصلي بهدف لكل منتخب، ثم تم اللجوء إلى شوطين إضافيين وركلات الترجيح، ونجح المنتخب المصري في التأهل بفوزه في ركلات الترجيح . في دور المجموعات، فاز المنتخب المصري على إسب...

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

فرصتك للدراسة في ألمانيا: منحة ممولة بالكامل لطلاب الدراسات العليا

Image
منح الدراسات العليا في ألمانيا (Scholarships for Graduate Studies in Germany) DAAD ألمانيا - منحة دراسة من فرصة ذهبية للدراسة في ألمانيا: منحة دراسية ممولة بالكامل لطلاب الدراسات العليا نظرة عامة: يسّر برنامج المنح الدراسية الألمانية دااد DAAD أن يقدّم لكم الفرصة لمواصلة تعليمكم الأكاديمي في ألمانيا من خلال دراسة عليا. يتم تمويل هذه المنح الدراسية من قبل وزارة الخارجية الألمانية الاتحادية. من يمكنه التقدم؟ يمكن التقدّم لمن أكملوا الدرجة الجامعية الأولى (بكالوريوس أو دبلوم على سبيل المثال) كحد أقصى بحلول وقت بدء فترة التمويل. يرجى ملاحظة: بالنسبة للمتقدمين من التخصصات الفنية ومجال الهندسة المعمارية ، تقدم DAAD برامج المنح الدراسية التالية: العمارة Architecture فن الأداء Performing Art الموسيقى Music الفنون الجميلة / التصميم / السينما Fine Art/Design/Film ما الذي يمكن تمويله؟ يوفر البرنامج التمويل ل: برنامج كامل للدراسات العليا أو درجة الماجستير مكتمل في إحدى الجامعات الحكومية أو المعترف بها من قبل الدولة في ألمانيا أو سنة واحدة من الدراسة في ألمانيا كجزء من درجة ثانية أو ماجستير مكتملة ...

The Art of Information Gathering: Lessons from Cybersecurity for Everyday Life

Image
 How Information Gathering Techniques used in Cebrsecurity can be a key to Success in Business The Art of Information Gathering: Lessons from Cybersecurity for Everyday Life In cybersecurity, professionals follow a series of systematic steps to identify, analyze, and mitigate threats. These steps can be organized into various frameworks and methodologies. One widely recognized framework is the Cyber Kill Chain, developed by Lockheed Martin, which outlines the steps an adversary takes to compromise a target. Cybersecurity professionals often counter these steps with defensive measures. Here’s an overview of the steps, with a particular focus on the crucial phase known as "reconnaissance". Reconnaissance R econnaissance is the initial and arguably most critical stage of a cyber attack, where the attacker gathers information about the target. This phase is not only vital for attackers but also for cybersecurity professionals, who conduct their own reconnaissance to understand po...

بايثون: مشروع لعبة هانج مان كامل 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 بالكامل الخاص بالملف. استيراد المكتبات في البداية، نستو...