Rahaf Code
91 subscribers
351 photos
18 videos
24 files
37 links
A special channel in publishing Python bolus scripts and completing some projects for a small fee
Owner @me_rahaf
Download Telegram
transfer.py
3.5 KB
A script that transfers coins from one account to another by subscribing to the fan club
Line 87 Enter the account link and Waiting time
Line 91 Enter your account email and password

برنامج نصي يعمل على نقل العملات المعدنية من حسابك الى حساب آخر عن طريق الاشتراك بنادي المعجبين
سطر 87 ادخل الرابط ووقت الانتضار
سطر 91 ادخل البريد الإلكتروني وكلمة المرور لحسابك

#clean_code
👍1
Rahaf Code
transfer.py
تطبيق Amino
اقترحو سكربتات اسويهه وقت افضى
(ممكن ما استقبل بعض الأفكار)
طبعاً في واحد طفل اسمه ادهم مسوي خوي ويدور زلات ورا الناس وكذا
في ولد سأل سؤال بدردشة تخص بايثون وانا جاوبته ف هو الحمار حسب اني فهمت السؤال بشكل خطأ وأعطيت جواب خطأ لان هو اللي فهم السؤال بشكل خطأ ف بحول الكلام من صاحب السؤال نفسه
Forwarded from πιluνεƦ
السلام عليكم
Forwarded from πιluνεƦ
معلش بزعجك شوي بس في سؤال
Forwarded from Saudi Hero | أبو حميد
a = '1'
b = '1'

print(a+b)

11 !!!!!
Forwarded from πιluνεƦ
هنا انت قصدك ليش طلع 11 مش 2 صح؟
Forwarded from πιluνεƦ
لو انا فهمت السؤال غلط؟
Forwarded from Saudi Hero | أبو حميد
اي صح انا كنت مستغرب ليه ما يطلع 2 😂
Forwarded from πιluνεƦ
تمام
كذا الحين مين الي مسوي نفسه فهمان وهو غبي يا ادهم؟
Forwarded from πιluνεƦ
انا قطيتك أصلا انا مش مبرمجه بسرق اكواد من الناس ومابعرف اعدل حتى
انا قفاصه
This media is not supported in your browser
VIEW IN TELEGRAM
في شخص ابثرنا بتحديه وهو انك تخلي قيمة البيانات int بدون ما تستخدم داله int في بايثون ب 4 أسطر او اقل حليت حلين هم هذول

def convert_string_to_integer(text: str) -> int:
"""A function that converts text to a number"""
output = 0
signal = 1
if text.startswith("-"):
text = text[1:]
signal = -1
for integer in text:
if (ord(integer) >= 48) and (ord(integer) <= 57):
output = output * 10 + ord(integer) - ord("0")
return output * signal


هذا الكود كلين بس أكثر من 4 أسطر

def convert_string_to_integer(text: str) -> int:
signal = -1 if text.startswith("-") else 1
text = text[1:] if text.startswith("-") else text
return signal * sum([(ord(integer) - ord("0")) * (10 ** index) for index, integer in enumerate(text[::-1])])


هذا الكود مش كلين بس 4 اسطر طبعاً الاثنين يرجعون بيانات int لكن الأول أكثر دقة وأتوقع تقدرو تختصرو الكود أكثر بكثير لكن ماني من محبين الاختصارات
👍3
This media is not supported in your browser
VIEW IN TELEGRAM
👍1
حل تحدي التحقق من الأقواس

code = "(([{()}]))"
try:
exec(code)
print("All brackets are well locked")
except SyntaxError:
print("Brackets are not well locked")
🔥2
http://aminoapps.com/c/Arab-community
منتدى يتجمع فيه العرب واصحاب الثقافات العربية اطلب الإنضمام اذا أردت وشكرا لكم