🐍 Python & Raspberry 🐍
8.21K subscribers
1.92K photos
125 videos
623 files
1.23K links
Python- Raspberry Pi-AI-IOT
ادمین : فرهاد ناصری زاده
@farhad_naserizadeh
@farhad3412

گروه پایتون
@Python_QA
تبادل
@mmtahmasbi
کانال مرتبط
@new_mathematical
@micropython_iot
@c_micro
اینستاگرام
http://Instagram.com/python_raspberry
Download Telegram
#آموزش

(lambda x: x + 3)(3) # returns 6
🌟🌟🌟🌟

42 in [ 2 , 39 , 42 ] # True
🌟🌟🌟

🔴 For loop declaration
for i in [ 0 , 1 , 2 ]:
print(i)



🔴 While loop - same semantics
j = 0
while j < 3 :
print(j)
j = j + 1

🌟🌟🌟🌟

y = x = 3
x is y # True
[ 3 ] is [ 3 ] # False


🌟🌟🌟

[ 1 , 2 , 2 ].append( 4 ) # [1, 2, 2, 4]
[ 1 , 2 , 4 ].insert( 2 , 2 ) # [1, 2, 2, 4]
[ 1 , 2 , 2 ] + [ 4 ] # [1, 2, 2, 4]

فرهاد ناصری زاده @farhad3412


@raspberry_python
#آموزش درک لیست و ست

🔴 List comprehension

l = [( 'Hi ' + x) for x in [ 'Alice' , 'Bob' , 'Pete' ]]
print(l)

# ['Hi Alice', 'Hi Bob', 'Hi Pete']

🌟🌟🌟🌟🌟

l2 = [x * y for x in range( 3 ) for y in range( 3 ) if x>y]
print(l2)

# [0, 0, 2]

🌟🌟🌟🌟🌟

🔴 Set comprehension

squares = { x** 2 for x in [ 0 , 2 , 4 ] if x < 4 }

# {0, 4}

فرهاد ناصری زاده @farhad3412

@raspberry_python
#آموزش zip

list(zip([ 'Alice' , 'Anna' ], [ 'Bob' , 'Jon' , 'Frank' ]))

[( 'Alice' , 'Bob' ), ( 'Anna' , 'Jon' )]

🍎🍎🍏🍏🍏🍎🍎

list(zip(*[( 'Alice' , 'Bob' ), ( 'Anna' , 'Jon' )]))

[( 'Alice' , 'Anna' ), ( 'Bob' , 'Jon' )]

فرهاد ناصری زاده @farhad3412

🔰 @raspberry_python
#آموزش map

list(map( lambda x: x[ 0 ], [ 'red' , 'green' , 'blue' ]))

[ 'r' , 'g' , 'b' ]

🍎🍎🍏🍏🍎🍏

list(map( lambda x, y: str(x) + ' ' + y + 's' , [ 0 , 2 , 2 ], [ 'apple' , 'orange' , 'banana' ]))

[ '0 apples' , '2 oranges' , '2 bananas' ]

فرهاد ناصری زاده @farhad3412

🔰 @raspberry_python
#آموزش ادغام دو دیکشنری

x={ 'Alice' : 18 }
y={ 'Bob' : 27 , 'Ann' : 22 }
z = {**x,**y}

z = { 'Alice' : 18 , 'Bob' : 27 , 'Ann' : 22 }

فرهاد ناصری زاده @farhad3412

@raspberry_python
#آموزش

بازکردن لیست Extended Unpacking

a, *b = [ 1 , 2 , 3 , 4 , 5 ]
a = 1
b = [ 2 , 3 , 4, 5 ]

🍏🍎🍏🍎🍏🍎
تعویض متغیرها در پایتون

a, b = 'Jane' , 'Alice'
a, b = b, a

a = 'Alice'
b = 'Jane'

🍏🍎🍏🍎🍏🍎

استفاده از * و ** در فراخوانی تابع

def f (x, y, z) : return x + y * z

f(*[ 1 , 3 , 4 ])
f(
{ 'z' : 4 , 'x' : 1 , 'y' : 3 })

13
13

فرهاد ناصری زاده @farhad3412

🔰 @raspberry_python
PythonForDataScience.pdf
212.3 KB
برگه تقلب برای علم داده
@raspberry_python
who needs free wifi ?
#fun
@raspberry_python
Mastering Large Datasets with Python: Parallelize and Distribute Your Python Code

داده های بزرگ با پایتون

🌟🌟2020

@raspberry_python
John_T_Wolohan_Mastering_Large_Datasets.pdf
17.4 MB
Mastering Large Datasets with Python: Parallelize and Distribute Your Python Code

داده های بزرگ با پایتون

🌟🌟2020

@raspberry_python
🐍 Python & Raspberry 🐍
who needs free wifi ? #fun @raspberry_python
ی تعداد از دوستان جواب هاشونو فرستادن برامون
روش های مختلفی حل میشه ولی کسی با روش های ریاضی حل نکرده بودن همه با برنامه نویسی حل کرده بودن :)
جواب این سوال دقیقا عدد پی هست
@raspberry_python
کسی میتونه توضیح بده چرا این خروجی ها ایجاد میشن؟
>>> import numpy as np
>>> import pandas as pd
>>> np.NaN == np.NaN
False
>>> pd.NA == pd.NA
<NA>



@raspberry_python
Hands-On Genetic Algorithms with Python: Applying genetic algorithms to solve real-world deep learning and artificial intelligence problems

الگوریتم های ژنتیک با پایتون

🌟🌟 2020 🌟🌟

❇️ @ raspberry_python
Eyal_Wirsansky_Hands_On_Genetic.pdf
9 MB
Hands-On Genetic Algorithms with Python: Applying genetic algorithms to solve real-world deep learning and artificial intelligence problems

الگوریتم های ژنتیک با پایتون

🌟🌟 2020 🌟🌟

❇️ @ raspberry_python
Forwarded from فرارو
ایلان ماسک: اتصال مغز انسان به رایانه امسال محقق می‌شود

◽️بنیانگذار استارتاپ "نورالینک" اخیرا اظهار کرد که این استارتاپ بروزرسانی‌هایی را راجع به فناوری در حال توسعه خود منتشر خواهد کرد.

◽️بنابر گزارش‌ها این استارتاپ قصد دارد با ساخت تراشه‌های رایانه‌ای قابل کاشت در داخل مغز انسان، مرز بین بشر و ماشین را کم رنگ‌تر کند.

💢 جزئیات بیشتر👇
fararu.com/fa/news/428395
@fararunews
Lattice-Based Public-Key Cryptography in Hardware

🌟🌟 2020 🌟🌟

🌟🌟 انتشارات اشپرینگر

رمزنگاری کلید عمومی

❇️ @raspberry_python
Computer_Architecture_and_Design.pdf
2.2 MB
Lattice-Based Public-Key Cryptography in Hardware

🌟🌟 2020 🌟🌟

🌟🌟 انتشارات اشپرینگر

رمزنگاری کلید عمومی

❇️ @raspberry_python
Machine Learning with the Raspberry Pi: Experiments with Data and Computer Vision

🌟🌟 2020 🌟🌟
یادگیری ماشین با رزبری پای

🔰 @raspberry_python
Donald_J_Norris_Machine_Learning.pdf
13.4 MB
Machine Learning with the Raspberry Pi: Experiments with Data and Computer Vision

🌟🌟 2020 🌟🌟
یادگیری ماشین با رزبری پای

🔰 @raspberry_python
Hybrid Imaging and Visualization: Employing Machine Learning with Mathematica - Python

🌟🌟 انتشارات اشپرینگر 2020 🌟

کتابی فوق العاده در حوزه مصور سازی و یادگیری ماشین با ریاضیات و پایتون

❇️ @raspberry_python