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

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

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

🔁ادمین :
@maryam3771
Download Telegram
🖥 zarr - Python library for implementing compressed N-dimensional arrays

- pip install zarr

Zarr provides classes and functions for working with N-dimensional arrays, which behave like #NumPy arrays, but the data is divided into chunks and each chunk is compressed. If anyone is familiar with HDF5, Zarr arrays provide similar functionality, but they are more convenient.

Also, unlike HDF5, Zarr has better multithreading support.


🟡 Docks
🖥 GitHub



#library
#python

🆔 @Python4all_pro
Generate Barcode using Python

#Code

🆔 @Python4all_pro
حل سوالات استخدامی سایت leetcode.com

Problem: No. 19. Remove Nth Node From End of List #medium

Condition:
Given the header of a linked list, remove the nth node from the end of the list and return its header

Solution:
# class ListNode:
# def init(self, x):
# self.val = x
# self.next = None

class Solution:
def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:
if head.next == None:
return None
tmp = head
size = 0

# find the size of the linked list
while tmp:
size += 1
tmp = tmp.next
tmp = head

#if we have to remove the first node:
if n == size:
return head.next

for i in range(size-n-1):
tmp = tmp.next
tmp.next = tmp.next.next
return head



Explanation:
Determining the list size:

First we go through the entire list to find its size. This is necessary to determine which node needs to be removed.
The size variable keeps track of the number of nodes in the list.
Removing the first node:

If n is equal to the size of the list, it means the first node should be removed. In this case, we return the next node from the head of the list.
Search for a node before the one you want to delete:

If n is not equal to the size of the list, we need to find the node that comes before the nth node from the end. We do this by moving size-n-1 nodes forward in the list.
Removing a node:

We set the next node for the found node so that it points to the next node after the next one, effectively bypassing the node to be deleted.
Returning a new header:

Returning the head of the list. If the first node was deleted, the new header will be the starting node of the list after the delete.
Time and space complexity:
Time complexity: O(L), where L is the length of the list. We go through the list twice: once to count nodes and again to remove a node.
Space complexity: O(1) because we use a constant amount of extra space independent of the size of the input data.

#Code
#interview #LeetCode


🆔 @Python4all_pro
Python libraries for ML


🆔 @Python4all_pro
Image to pencil sketch using #Python



🆔 @Python4all_pro
Useful Python string formatting types base in placeholder

#python


🆔 @Python4all_pro
🖥 badjpg
This useful Python script allows you to hide useful information inside a JPG image using steganography techniques.


Github

git clone https://github.com/basicW/badjpg.git




#library
#python

🆔 @Python4all_pro
◀️😮♨️ فقط 2⃣ روز دیگر فرصت باقیست❗️

سی اُمین دوره جامع علم داده کل کشور

با تدریس مطرحترین اساتید دیتایی

آموزش ۱۵ سرفصل و ۱۲ نرم افزار و کاملا پروژه محور▶️

همراه با 0️⃣2️⃣🛍 تخفیف و تسهیلات ویژه

ارائه گواهی معتبر دوزبانه و تحت نظارت وزارت علوم با قابلیت ترجمه رسمی و امکان استعلام از دانشگاه تهران🎓

اطلاعات بیشتر
➡️https://tehrandata.org/courses/datascience

👤🌏 پشتیبانی آنلاین جهت ثبت‌نام
😂 @tehrandata_admin
☎️ 09377516759
🆗 کانال تلگرامی
🌐 واتساپ
📄 لینکدین
📷 اینستا
🌎 وبسایت
Please open Telegram to view this post
VIEW IN TELEGRAM
⌨️ Hide secret message in Image using Python




#Code

🆔 @Python4all_pro
دوره جامع تخصصی فرانت اند اینجاست 💪

از صفر تا متخصص یو آی یو ایکس و فرانت اند با شماییم


✴️ برای یک طراح سایت خوب در تمام دنیا جا هست.

◀️ اگر می‌خوای این مهارت رو به صورت حرفه‌ای یاد بگیری این دوره مناسبته

‼️ اولین اولترا دوره طراحی و توسعه وبسایت با پشتیبانی اختصاصی رو از دست ندید

♨️ این دوره پیش نیاز ندارد

👇👇👇👇
https://zaya.io/z4nra

📌 ثبت نام دوره
Screenshot 2024-07-24 215958.jpg
77.1 KB
نمونه کار اولیه طراحی رابط کاربری دانشجوهای دوره فرانت اند در کمتر از سه روز 🌺❤️

طراحی اپ موزیک

شما هم می تونید طراح سایت بشید

لینک ثبت نام دوره جامع فرانت اند
👇👇👇👇👇

https://zaya.io/z4nra
Python 3 Beginners.pdf
9.5 MB
#Python 3 : 400 exercises and solutions for beginners

#pdf

🆔 @Python4all_pro
🖥 چیت شیت شماره 21 پایتون

اطلاعات زیادی در این چیت شیت ها وجود دارد که برای پایتون کارهای مبتدی و پیشرفته مفید خواهد بود: از basic data structures و OOP و کار با فایل ها - تا creating asynchronous applications و کار با SQL.


🟡 Python Cheatsheet



#cheat_sheet #Python

🆔 @Python4all_pro