uk
Feedback
Python3 Programming 💡

Python3 Programming 💡

Відкрити в Telegram

كل ما يخص البرمجة بلغة python : -كورسات -مشاريع -ادوات -..الخ

Показати більше
691
Підписники
Немає даних24 години
-17 днів
-930 день

Триває завантаження даних...

Схожі канали
Немає даних
Виникли проблеми? Будь ласка, оновіть сторінку або зверніться до нашого support-менеджера.
Хмара тегів
Немає даних
Виникли проблеми? Будь ласка, оновіть сторінку або зверніться до нашого support-менеджера.
Вхідні та вихідні згадування
---
---
---
---
---
---
Залучення підписників
лютий '25
лютий '25
+6
в 0 каналах
січень '25
+15
в 0 каналах
Get PRO
грудень '24
+35
в 2 каналах
Get PRO
листопад '24
+38
в 4 каналах
Get PRO
жовтень '24
+30
в 1 каналах
Get PRO
вересень '240
в 0 каналах
Get PRO
серпень '240
в 0 каналах
Get PRO
липень '240
в 0 каналах
Get PRO
червень '240
в 2 каналах
Get PRO
травень '240
в 0 каналах
Get PRO
квітень '240
в 0 каналах
Get PRO
березень '240
в 0 каналах
Get PRO
лютий '240
в 0 каналах
Get PRO
січень '240
в 1 каналах
Get PRO
грудень '230
в 0 каналах
Get PRO
листопад '230
в 0 каналах
Get PRO
жовтень '230
в 0 каналах
Get PRO
вересень '230
в 0 каналах
Get PRO
серпень '230
в 0 каналах
Get PRO
липень '23
+2
в 0 каналах
Get PRO
червень '23
+9
в 0 каналах
Get PRO
травень '23
+4
в 0 каналах
Get PRO
квітень '23
+1
в 0 каналах
Get PRO
березень '23
+12
в 0 каналах
Get PRO
лютий '23
+16
в 0 каналах
Get PRO
січень '23
+4
в 0 каналах
Get PRO
грудень '22
+1
в 0 каналах
Get PRO
листопад '22
+8
в 0 каналах
Get PRO
жовтень '22
+3
в 0 каналах
Get PRO
вересень '22
+2
в 0 каналах
Get PRO
серпень '22
+7
в 0 каналах
Get PRO
липень '22
+4
в 0 каналах
Get PRO
червень '22
+3
в 0 каналах
Get PRO
травень '22
+1
в 0 каналах
Get PRO
квітень '22
+2
в 0 каналах
Get PRO
березень '22
+4
в 0 каналах
Get PRO
лютий '22
+7
в 0 каналах
Get PRO
січень '22
+5
в 0 каналах
Get PRO
грудень '21
+8
в 0 каналах
Get PRO
листопад '21
+13
в 0 каналах
Get PRO
жовтень '21
+2
в 0 каналах
Get PRO
вересень '21
+6
в 0 каналах
Get PRO
серпень '21
+5
в 0 каналах
Get PRO
липень '21
+9
в 0 каналах
Get PRO
червень '21
+6
в 0 каналах
Get PRO
травень '21
+14
в 0 каналах
Get PRO
квітень '21
+22
в 0 каналах
Get PRO
березень '21
+11
в 0 каналах
Get PRO
лютий '21
+3
в 0 каналах
Get PRO
січень '21
+4
в 0 каналах
Get PRO
грудень '20
+920
в 0 каналах
Дата
Залучення підписників
Згадування
Канали
24 лютого0
23 лютого+1
22 лютого0
21 лютого+1
20 лютого0
19 лютого0
18 лютого0
17 лютого0
16 лютого0
15 лютого0
14 лютого+1
13 лютого0
12 лютого0
11 лютого0
10 лютого+1
09 лютого0
08 лютого+1
07 лютого0
06 лютого0
05 лютого+1
04 лютого0
03 лютого0
02 лютого0
01 лютого0
Дописи каналу
:)
:)

2
Top 6 API Architecture Styles 1. REST (Representational State Transfer) - Description: REST is an architectural style that uses standard HTTP methods (GET, POST, PUT, DELETE) for communication. It emphasizes stateless interactions and is resource-oriented, where resources are identified by URIS. - Use Cases: Web services, mobile applications, and CRUD operations. 2. GraphQL - Description: GraphQL is a query language for APIs that allows clients to request exactly the data they need. It provides a single endpoint for fetching data and allows for more dynamic interactions. - Use Cases: Complex applications needing flexible data retrieval, such as social media platforms and dashboards. 3. WebSockets - Description: WebSockets provide a full-duplex communication channel over a single TCP connection. They enable real-time communication between the client and server. - Use Cases: Real-time applications like chat apps, online gaming, and collaborative tools. 4. Webhooks - Description: Webhooks are user-defined HTTP callbacks that are triggered by specific events in a web application. When an event occurs, a request is sent to a predefined URL. - Use Cases: Integrating different systems, notifications, and event-driven architectures. 5. gRPC (gRPC Remote Procedure Calls) - Description: gRPC is an open-source RPC framework that uses HTTP/2 for transport and Protocol Buffers as the interface description language. It allows for efficient communication between services. - Use Cases: Microservices architecture, high-performance applications, and inter-service communication. 6. MQTT (Message Queuing Telemetry Transport) Description: MQTT is a lightweight messaging protocol designed for low-bandwidth, high-latency networks, often used in IoT applications. It uses a publish/subscribe model. - Use Cases: IoT devices, remote monitoring, and real-time analytics. Each of these API architecture styles has its strengths and weaknesses, making them suitable for different scenarios. The choice of which to use often depends on :)
80
3
Requests informations✨💔 :)
Requests informations✨💔 :)
63
4
Python Collections Python supports 4 types of collections: List: Ordered, changeable, and allows duplicate members. Tuple: Ordered, unchangeable, and allows duplicate members. Set: Unordered, unchangeable*, and does not allow duplicate members. Dictionary: Ordered** and changeable, but does not allow duplicate keys. * Set items are unchangeable, but you can add or remove items. ** Dictionaries are ordered as of Python 3.7. In earlier versions, they are unordered. :)
111
5
Python3 Programming #post_14 ا لقوائم Python ما هي القوائم (Lists)؟ القوائم هي طريقة لتخزين عناصر متعددة داخل متغير واحد. وهي واحدة من 4 أنواع بيانات مدمجة في Python تُستخدم لتخزين مجموعات من البيانات، بالإضافة إلى المجموعات الأخرى: Tuple وSet وDictionary، ولكل منها خصائص واستخدامات مختلفة. إنشاء قائمة يتم إنشاء القوائم باستخدام الأقواس المربعة: مثال: # إنشاء قائمة thislist = ["apple", "banana", "cherry"] print(thislist) خصائص القوائم مرتبة (Ordered): يعني أن العناصر لها ترتيب محدد لن يتغير. عند إضافة عناصر جديدة، يتم وضعها في نهاية القائمة. قابلة للتغيير (Changeable): يمكنك تعديل العناصر، أو إضافة عناصر جديدة، أو حذفها بعد إنشاء القائمة. تسمح بالتكرار (Allow Duplicates): يمكن أن تحتوي القائمة على قيم مكررة لأن العناصر يتم فهرستها. مثال: # قائمة تحتوي على عناصر مكررة thislist = ["apple", "banana", "cherry", "apple", "cherry"] print(thislist) طول القائمة يمكنك معرفة عدد العناصر في القائمة باستخدام دالة len(): مثال: # طباعة عدد العناصر في القائمة thislist = ["apple", "banana", "cherry"] print(len(thislist)) أنواع بيانات العناصر يمكن أن تحتوي القائمة على عناصر من أنواع بيانات مختلفة، مثل النصوص والأرقام والقيم المنطقية. مثال: # قوائم بأنواع بيانات مختلفة list1 = ["apple", "banana", "cherry"] # نصوص list2 = [1, 5, 7, 9, 3] # أرقام list3 = [True, False, False] # قيم منطقية # قائمة تحتوي على أنواع بيانات مختلفة list4 = ["abc", 34, True, 40, "male"] التحقق من نوع البيانات القوائم في Python هي كائنات من النوع list. مثال: # التحقق من نوع البيانات mylist = ["apple", "banana", "cherry"] print(type(mylist)) إنشاء قائمة باستخدام المُنشئ list() يمكنك أيضًا إنشاء قائمة باستخدام المُنشئ list(). مثال: # استخدام list() لإنشاء قائمة thislist = list(("apple", "banana", "cherry")) # لاحظ الأقواس المزدوجة print(thislist) مجموعات البيانات في Python Python تدعم 4 أنواع من المجموعات: List: مجموعة مرتبة وقابلة للتغيير. تسمح بالعناصر المكررة. Tuple: مجموعة مرتبة وغير قابلة للتغيير. تسمح بالعناصر المكررة. Set: مجموعة غير مرتبة وغير قابلة للتغيير، ولا تسمح بتكرار العناصر. Dictionary: مجموعة مرتبة (بدءًا من الإصدار 3.7) وقابلة للتغيير. لا تسمح بتكرار المفاتيح. Python Lists What Are Lists? Lists are used to store multiple items in a single variable. They are one of the 4 built-in data types in Python used for storing collections of data, alongside Tuple, Set, and Dictionary, each with distinct qualities and uses. Creating a List Lists are created using square brackets: Example: # Create a list thislist = ["apple", "banana", "cherry"] print(thislist) Properties of Lists Ordered: Items in a list have a defined order that will not change. New items are added at the end of the list. Changeable: Lists can be modified by changing, adding, or removing items. Allow Duplicates: Lists can contain duplicate values since items are indexed. Example: # A list with duplicate values thislist = ["apple", "banana", "cherry", "apple", "cherry"] print(thislist) List Length You can determine the number of items in a list using the len() function. Example: # Print the number of items in the list thislist = ["apple", "banana", "cherry"] print(len(thislist)) Data Types in Lists List items can be of any data type, including strings, integers, and booleans. Example: # Lists with different data types list1 = ["apple", "banana", "cherry"] # Strings list2 = [1, 5, 7, 9, 3] # Numbers list3 = [True, False, False] # Boolean values # A list with mixed data types list4 = ["abc", 34, True, 40, "male"] Checking Data Type In Python, lists are objects of the data type list. Example: # Check the data type of a list mylist = ["apple", "banana", "cherry"] print(type(mylist)) Creating Lists with the list() Constructor You can also create a list using the list() constructor. Example: # Using the list() constructor to create a list thislist = list(("apple", "banana", "cherry")) # Note the double parentheses print(thislist)
96
6
#### Logical Operators These operators are used to combine conditional statements: | Operator | Description | Example | |----------|-----------------------------|--------------------| | and | True if both are True | x < 5 and x < 10 | | or | True if one is True | x < 5 or x < 4 | | not | Reverses the result | not(x < 5) | --- #### Operator Precedence Operator precedence determines the order in which operations are executed. - Parentheses have the highest precedence: print((6 + 3) - (6 + 3)) # Output: 0 - Operations with the same precedence are executed from left to right: print(5 + 4 - 7 + 3) # Output: 5 Quick Exercise: What is the result? x = 5 x += 3 print(x) Answer: 8 :)
104
7
Python3 Programming #post_13 #### مقدمة عن عوامل بايثون (Python Operators) العوامل (Operators) تُستخدم لتنفيذ العمليات على المتغيرات والقيم. على سبيل المثال: العامل + يُستخدم لجمع رقمين: print(10 + 5) # النتيجة: 15 أنواع العوامل في بايثون: 1. عوامل الحساب (Arithmetic Operators) 2. عوامل الإسناد (Assignment Operators) 3. عوامل المقارنة (Comparison Operators) 4. عوامل منطقية (Logical Operators) 5. عوامل الهوية (Identity Operators) 6. عوامل العضوية (Membership Operators) 7. عوامل العمليات الثنائية (Bitwise Operators) --- #### عوامل الحساب (Arithmetic Operators) تُستخدم لإجراء العمليات الحسابية: | العامل | الوظيفة | المثال | |--------|------------------|--------------| | + | الجمع | x + y | | - | الطرح | x - y | | * | الضرب | x * y | | / | القسمة | x / y | | % | باقي القسمة | x % y | | ** | الأس | x ** y | | // | القسمة الأرضية | x // y | --- #عوامل الإسناد (Assignment Operators)s)** تُستخدم لإعطاء قيم للمتغيرات: | العامل | المثال | ما يعادل | |--------|------------------|--------------| | = | x = 5 | x = 5 | | += | x += 3 | x = x + 3 | | -= | x -= 3 | x = x - 3 | --- #عوامل المقارنة (Comparison Operators)s)** تُستخدم لمقارنة قيمتين: | العامل | الوظيفة | المثال | |--------|--------------------|--------------| | == | يساوي | x == y | | != | لا يساوي | x != y | | > | أكبر من | x > y | | < | أصغر من | x < y | --- #عوامل منطقية (Logical Operators)s)** تُستخدم للجمع بين عبارات شرطية: | العامل | الوظيفة | المثال | |--------|--------------------------------|--------------------| | and | صحيح إذا كانت العبارتين صحيحتين | x < 5 and x < 10| | or | صحيح إذا كانت إحدى العبارتين صحيحة | x < 5 or x < 4 | | not | عكس النتيجة | not(x < 5) | --- #أولوية العمليات (Operator Precedence)e)** تحدد أولوية العمليات ترتيب تنفيذها. - الأقواس لها الأولوية الأعلى: print((6 + 3) - (6 + 3)) # النتيجة: 0 - العمليات ذات الأولوية المتساوية تُنفذ من اليسار إلى اليمين: print(5 + 4 - 7 + 3) # النتيجة: 5 **تمرين بسيط**: ما النتيجة؟ x = 5 x += 3 print(x) **الجواب: 8** Introduction to Python Operators Operators** Operators are used to perform operations on variables and values. For example, the + operator is used to add two numbers: print(10 + 5) # Output: 15 **Types of Python Operators:** 1. Arithmetic Operators 2. Assignment Operators 3. Comparison Operators 4. Logical Operators 5. Identity Operators 6. Membership Operators 7. Bitwise OperatoArithmetic Operatorsetic Operators** These operators are used for mathematical calculations: | Operator | Name | Example | |----------|---------------|---------------| | + | Addition | x + y | | - | Subtraction | x - y | | * | Multiplication| x * y | | / | Division | x / y | | % | Modulus | x % y | | ** | Exponentiation| x ** y | | // | Floor division| x // y Assignment Operatorssignment Operators** These operators are used to assign values to variables: | Operator | Example | Same As | |----------|----------------|---------------| | = | x = 5 | x = 5 | | += | x += 3 | x = x + 3 | | -= | x -= 3 | x = x - 3 | --- #### **Comparison Operators** These operators are used to compare two values: | Operator | Name | Example | |----------|----------------|---------------| | == | Equal | x == y | | != | Not equal | x != y | | > | Greater than | x > y | | < | Less than | x < y | ---
109
8
Scripting...
93
9
مواصلة م انقطع من كورس بايثون ✨🔥 :)
3 810
10
phone numbers scraper :) - الوصف: كود بلغة بايثون ومكتبة bs4 & requests لسحب او استخراج ارقام الهواتف الموجودة داخل المواقع بواسطة روابط المواقع ⚡️⚡️ - التجربة والتشغيل: قم بادخال روابط المواقع التي تريد استخراج ارقام الهواتف منها في القائمة في السطر 7 ثم قم بتثبيت المكاتب 🔥🔥❕ - الفائدة: معرفة جمع البيانات من اي موقع بواسطة الاكواد ❤️🔥 اي خلل يواجهك يمكنك كتابته في التعليقات❕ :)
108
11
شباب سلام عليكم للمرة الثانية نقدم اعتزارنا ان شاءالله من اليوم سنلتزم بتقديم المحتوى البرمجي مع وجود بث مباشر كل اسبوع للمناقشة او الاجابة على الاسئلة :)
108
12
اهم queries ✨❤️ :)
اهم queries ✨❤️ :)
92
13
سلام عليكم ورحمه الله وبركاته كيفكم ان شاء الله بخير. معليش طولنا منكم فترة طويلة ومن جديدنا بالبوتات والاكواد ان شاءالله عائدون :)
91
14
sticker.webp
176
15
اتمنى الكل يستفيد🫶🏻
179
16
منور يا عبود
176
17
لا تستخدمو chat gpt في المشاريع المعقدة.. Chat gpt لا تستخدموه في المشاريع المعقدة.. في المشاريع المعقدة لا تستخدمو chat gpt.. لانه بعد استعماله هيدخل في موضوع غير موضوعك الاساسي وانت م هتفهم شي بعده وتضيع مشروعك .. وشكرا🥲💔 :)
129
18
مثال: print(bool(False)) # False print(bool(None)) # False print(bool(0)) # False print(bool("")) # False print(bool(())) # False print(bool([])) # False print(bool({})) # False --- 6. القيم المنطقية في الفئات (Classes) يمكن لأي كائن (Object) أيضًا أن يقيم كـ False إذا كان مشتقاً من فئة تحتوي على دالة __len__ تعيد 0 أو False. مثال: class MyClass: def __len__(self): return 0 myobj = MyClass() print(bool(myobj)) # False --- 7. الدوال التي تعيد قيمة منطقية يمكنك إنشاء دوال تعيد قيمة منطقية. مثال: def myFunction(): return True print(myFunction()) # True if myFunction(): print("YES!") else: print("NO!") --- 8. دوال بايثون المدمجة التي تعيد قيم منطقية يحتوي بايثون على عدة دوال مدمجة تعيد قيمًا منطقية، مثل isinstance(). مثال: x = 200 print(isinstance(x, int)) # True --- :)
174
19
Python3 Programming #post_12 --- Introduction to Python Booleans In Python, Booleans are a simple data type that represent one of two values: True or False. They are useful for conditions, comparisons, and evaluating expressions. --- 1. Boolean Values Booleans are helpful for determining if an expression is True or False. Python will return a Boolean answer when comparing two values. Example: print(10 > 9) # True print(10 == 9) # False print(10 < 9) # False --- 2. Using Booleans in Conditional Statements Booleans are especially useful in conditional statements, like if statements, where Python returns True or False based on the condition. Example: a = 200 b = 33 if b > a: print("b is greater than a") else: print("b is not greater than a") --- **3. Evaluating Values and Variables with bool()** You can use the bool() function to evaluate any value and determine if it’s True or False. **Example:** print(bool("Hello")) # True print(bool(15)) # True x = "Hello" y = 15 print(bool(x)) # True print(bool(y)) # True --- **4. Most Values are True** Most non-empty values (like non-zero numbers, non-empty strings, and collections) evaluate to True. **Example:** print(bool("abc")) # True print(bool(123)) # True print(bool(["apple", "cherry", "banana"])) # True --- **5. Values That Are False** Certain values, like empty strings (""), the number 0, empty collections, and None, Example:False. **Example:** print(bool(False)) # False print(bool(None)) # False print(bool(0)) # False print(bool("")) # False print(bool(())) # False print(bool([])) # False print(bool({})) # False --- **6. Boolean in Custom Classes** An object can also evaluate to False if it’s made from a class that has a __len__ function returning 0 or False. **Example:** class MyClass: def __len__(self): return 0 myobj = MyClass() print(bool(myobj)) # False --- **7. Functions Returning Boolean** You can create functionExample:n a Boolean value. **Example:** def myFunction(): return True print(myFunction()) # True if myFunction(): print("YES!") else: print("NO!") --- **8. Built-In Boolean Functions** Python has several built-in functions that retuExample: such as isinstance(). **Example:** x = 200 print(isinstance(x, int)) # True --- ### Python Booleans --- **مقدمة عن القيم المنطقية في بايثون** في بايثون، القيم المنطقية (Booleans) تمثل نوع بيانات بسيط يعبر عن حالتين فقط: True أو False. تستخدم القيم المنطقية في ال1. القيم المنطقيةم التعبيرات. --- **1. القيم المنطقية** تستخدم القيم المنطقية لتحديد ما إذا كان التعبير صحيحًا (True) أو خاطئًا (False). عند المقارنةمثال:ين، يعيد بايثون نتيجة منطقية. **مثال:** print(10 > 9) # True print(10 == 9) # False print(10 < 9) # False --- **2. استخدام القيم المنطقية في العبارات الشرطية** تعتبر القيم المنطقية مفيدة خاصة في العبارات الشرطية مثل if، حيث مثال:ون True أو False بناءً على الشرط. **مثال:** a = 200 b = 33 if b > a: print("b أكبر من a") else: print("b ليس أكبر من a") --- **3. تقييم القيم والمتغيرات باستخدام bool()** يمكنك استخدام دالة bool() لتمثال:يمة وتحديد ما إذا كانت True أو False. **مثال:** print(bool("Hello")) # True print(bool(15)) # True x = "Hello" y = 15 print(bool(x)) # True print(bool(y)) # True --- **4. معظم القيم تقيّم كـ True** تقريباً أي قيمة غير فارغة (مثل الأرقام غير الصفرية، السمثال:ية غير الفارغة، والمجموعات) تقيم كـ True. **مثال:** print(bool("abc")) # True print(bool(123)) # True print(bool(["apple", "cherry", "banana"])) # True --- **5. القيم التي تعتبر False** هناك بعض القيم التي تقيم كـ False، مثل السلاسل النصية الفارغة ("")، الرقم 0، المجموعات الفارغة، وNone.
115
20
Python3 Programming #post_11 ### Python String Methods: A Guide for Beginners In both English and Arabic, here’s a beginner-friendly summary of the most commonly used string methods in Python. These methods allow for easy manipulation of text data and are invaluable for anyone working with text processing. --- Introduction to Python String Methods Python provides a wide range of built-in methods to work with strings. These methods help you easily modify, analyze, and format text data in various ways. Remember, each method creates a new string and does not alter the original string. --- Basic String Methods Here’s a list of some commonly used string methods in Python and their descriptions: 1. capitalize() - Converts the first character to uppercase. 2. casefold() - Converts the string to lowercase, useful for case-insensitive comparisons. 3. center(width) - Centers the string within a given width. 4. count(substring) - Counts how many times a substring appears. 5. encode() - Returns an encoded version of the string, useful for handling text in different character encodings. 6. endswith(suffix) - Checks if the string ends with a specified suffix. --- Formatting and Searching Methods 1. find(substring) - Finds the position of a substring in the string. 2. format() - Formats specified values within the string. 3. index(substring) - Similar to find but raises an error if not found. 4. isalnum() - Returns True if all characters are alphanumeric. 5. isalpha() - Returns True if all characters are alphabet letters. --- Additional Useful Methods 1. join(iterable) - Joins elements in an iterable with the string as a separator. 2. replace(old, new) - Replaces occurrences of a substring with another. 3. split(separator) - Splits the string at a specified separator. 4. strip() - Removes whitespace from the start and end of the string. 5. upper() - Converts all characters to uppercase. --- مقدمة حول أساليب التعامل مع النصوص في بايثون يوفر بايثون مجموعة واسعة من الأساليب المدمجة التي تساعدك على التعامل مع النصوص بسهولة. هذه الأساليب تتيح لك تعديل وتحليل وتنسيق البيانات النصية بطرق مختلفة. تذكر أن كل أسلوب يُرجع نصًا جديدًا ولا يغيّر النص الأصلي. --- أساليب النصوص الأساسية إليك قائمة بأهم أساليب التعامل مع النصوص في بايثون ووصفها: 1. capitalize() - تحويل أول حرف إلى حرف كبير. 2. casefold() - تحويل النص إلى أحرف صغيرة بالكامل. 3. center(width) - محاذاة النص في المنتصف بعرض معين. 4. count(substring) - عدّ تكرار جزء من النص. 5. encode() - إرجاع نسخة مشفرة من النص للتعامل مع تنسيقات الأحرف المختلفة. 6. endswith(suffix) - التحقق مما إذا كان النص ينتهي بقيمة معينة. --- أساليب التنسيق والبحث 1. find(substring) - البحث عن موضع جزء من النص. 2. format() - تنسيق قيم محددة داخل النص. 3. index(substring) - مشابهه لـ find لكن يظهر خطأ إذا لم يُعثر على الجزء. 4. isalnum() - يُرجع True إذا كانت كل الأحرف أبجدية أو أرقام. 5. isalpha() - يُرجع True إذا كانت كل الأحرف من الأبجدية. --- أساليب إضافية مفيدة 1. join(iterable) - دمج العناصر في مجموعة باستخدام النص كمفصل. 2. replace(old, new) - استبدال جزء معين من النص بآخر. 3. split(separator) - تقسيم النص عند فاصل معين. 4. strip() - إزالة المسافات من بداية ونهاية النص. 5. upper() - تحويل كل الأحرف إلى أحرف كبيرة. :)
115