پایتون ( Machine Learning | Data Science )
23.6K subscribers
468 photos
57 videos
103 files
335 links
◀️اینجا با تمرین و چالش با هم پایتون رو یاد می گیریم

بانک اطلاعاتی پایتون
پروژه / code/ cheat sheet
+ویدیوهای آموزشی

+کتابهای پایتون
تبلیغات:
@alloadv

🔁ادمین :
@maryam3771
Download Telegram
مدیریت فایل پایتون:

بررسی حالتهای مختلف دسترسی به فایل موجود در پایتون

🔸r : It opens the file to read-only. The file pointer exists at the beginning.
🔸rb : It opens the file to read-only in the binary format.
🔸r+ : It opens the file to read and write both.
🔸rb+ : It opens the file to read and write both in the binary format.
🔸 w : It opens the file to write only. It overwrites the file if previously exists or creates a new one if no file exists with the same name.
🔸wb : It opens the file to write only in the binary format
🔸w+ : It opens the file to write and read both. It is different from r+ in the sense that it overwrites the previous file if one exists whereas r+ doesn’t overwrite the previously written file.
🔸wb+ : It opens the file to write and read both in the binary format
🔸a : It opens the file in the append mode.
🔸ab : It opens the file in the append mode in the binary format.
🔸a+ : It opens a file to append and read both.
🔸ab+ : It opens a file to append and read both in the binary format.

with open("hello.txt", "w+") as f:
f.write("Hello World")
f.seek(0)
print(f.read())



🆔 @Python4all_pro
python interview questions answers.pdf
508.8 KB
80+ پرسش و پاسخ حل شده مصاحبه پایتون به همراه Code


#interview #code
🆔 @Python4all_pro
تمرین  : خروجی این کد پایتون چیه ؟

#code #test

🆔 @Python4all_pro
What will be the output of the following Python code?
Anonymous Quiz
39%
0
28%
no output
17%
error
17%
none
تمرین  : خروجی این کد پایتون چیست ؟

#code #test

🆔 @Python4all_pro
What will be the output of the following Python code?
Anonymous Quiz
18%
0 1 2
38%
{0, 1, 2} {0, 1, 2} {0, 1, 2}
26%
error
18%
none
10 min Python Pandas.pdf
548.8 KB
10 min to Python #Pandas Cheatsheet pdf

هر روز یک Cheat Sheet
برگه تقلب شماره ۱۱ پایتون

Cheat Sheet 11: Python

#کتابخانه
#cheat_sheet #pdf
#library

🆔 @Python4all_pro
پایتون ( Machine Learning | Data Science )
What will be the output of the following Python code?
توضیحات : دوستان جواب درست این تست گزینه آخره، چون همه عناصر از قبل تو مجموعه‌ بوده و در دستور پرینت خواستیم تغییرات رو پرینت کنه از اونجایی که عنصر جدیدی اضافه نشده جواب میشه none
تمرین  : خروجی این کد پایتون چیست ؟

#code #test

🆔 @Python4all_pro
What will be the output of the following Python code?
Anonymous Quiz
19%
0.0 1.0
29%
0 1
38%
error
13%
none
پایتون ( Machine Learning | Data Science )
What will be the output of the following Python code?
توضیحات: داده از نوع float ( ممیز شناور) را نمی توان به عنوان یک عدد صحیح (integers) تفسیر کرد.
Pattern 1

n = 7
for i in range(1,n+1):
print(i, end=" ")



#code #pattern

🆔 @Python4all_pro
تمرین  : خروجی این کد پایتون چیست ؟

#code #test

🆔 @Python4all_pro
What will be the output of the following Python code snippet?
Anonymous Quiz
28%
a b c d
22%
0 1 2 3
36%
error
14%
none
پایتون ( Machine Learning | Data Science )
تمرین  : خروجی این کد پایتون چیست ؟ #code #test 🆔 @Python4all_pro
توضیحات: در این کد دستور I.upper هیچ مفهومی برای سیستم ندارد برای همین هیچ عملکردی روی آن انجام نمیشه چون I متغیر نیست X متغییره
( متد upper حروف کوچک متن را به بزرگ تبدیل میکند)
Pattern 2

n = 7
for i in range(n, 0, -1):
print(i, end=" ")


#code #pattern

🆔 @Python4all_pro
Python_Basics_Cheat_Sheet-updated.pdf
7.1 MB
هر روز یک Cheat Sheet
برگه تقلب شماره ۱۲ پایتون

Cheat Sheet 12: Python


#cheat_sheet #pdf

🆔 @Python4all_pro
تمرین  : خروجی این کد پایتون چیست ؟

#code #test

🆔 @Python4all_pro
What will be the output of the following Python code snippet?
Anonymous Quiz
10%
abcd
45%
ABCD
37%
error
8%
none
Pattern 3

n = 7
for _ in range(n):
print("*", end=" ")


#code #pattern

🆔 @Python4all_pro
🧑‍💻👩‍💻 دست به کد شوید
 
‼️خروجی این کد پایتون چیست ؟

#code #test

🆔 @Python4all_pro