🐍 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
Forwarded from Deleted Account
Arduino cookbook.pdf
5.9 MB
Forwarded from Deleted Account
Arduino Essentials.pdf
4.6 MB
Forwarded from Deleted Account
Arduino Workshop.pdf
6.8 MB
Forwarded from Deleted Account
C program for Arduino.pdf
9.5 MB
Forwarded from Deleted Account
Arduino_for_Dummies_John_Nussey.pdf
30.6 MB
#آموزش کار با لیست

lst = [0, 1, 2, 3, 4, 5, 6, 7, 8]

print(lst[2])
outpu : 2

print(lst[1:3])
outpu : [1, 2]

print(lst[:3])
outpu : [0, 1, 2]

print(lst[-3:])
outpu : [6, 7, 8]

print(lst[:-3])
outpu : [0, 1, 2, 3, 4, 5]

print(lst[:])
outpu : [0, 1, 2, 3, 4, 5, 6, 7, 8]

print(lst[1:-1])
outpu : [1, 2, 3, 4, 5, 6, 7]

print(lst[::3])
outpu : [0, 3, 6]

print(lst[1:5:2])
outpu : [1, 3]

print(max(lst))
outpu : 8

print(min(lst))
outpu : 0

lst.append(9)
print(lst)
outpu : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]


tmp = lst.pop()
print(tmp)
outpu : 9

lst.remove(8)
print(lst)
output : [0, 1, 2, 3, 4, 5, 6, 7]

print(lst)
outpu : [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]

print(lst.index(5))
output : 6

lst1 = [1, 2, 3]
lst2 = [4, 5, 6]
lst1.extend(lst2)
print(lst1)
output : [1, 2, 3, 4, 5, 6]

lst = [1, 2, 2, 2, 3, 4]
print(lst.count(2))
output : 3


lst = [1, [2, 3, 4, 5], 6, 7]
print(lst[1])
outpu : [2, 3, 4, 5]

print(lst[1][3])
outpu : 5

با تشکر از

@milad_ghasemi_1


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


dic = {'name' : 'milad', 'family' : 'ghasemi', 'age' : 34}

print(dic)
output : {'name' : 'milad', 'family' : 'ghasemi', 'age' : 34}

print(dic['name'])
output : 'milad'

dic['age'] = 25
print(dic)
output : {'name' : 'milad', 'family' : 'ghasemi', 'age' : 25}

print("my name is ", dic['name'])
output : my name is milad

print("lenght of dictionary is : %d " % len(dic))
output : 3

dic1 = dic.copy()
output : {'name' : 'milad', 'family' : 'ghasemi', 'age' : 34}

print(dic.get('name'))
output : 'milad'

print(dic.get('sex', "Op's can't find it!"))
output : "Op's can't find it this key in dictionary"

print(dic.keys())
output : name, family, age

print(dic1.values())
output : milad, ghasemi, 34

seq = ('name', 'age', 'state')
dic = dic.fromkeys(seq)
print(dic)
output : {'name' : None, 'age' : None, 'state' : None}

dic = dic.fromkeys(seq, 10)
print(dic)
output : {'name' : 10, 'age' : 10, 'state' : 10}

dic1 = {'language' : 'c++'}
dic.update(dict1)
print(dic)
output : {'name' : 'milad', 'family' : 'ghasemi', 'age' : 34, 'language' : 'c++'}

dic = {'name' : 'milad', 'favorite_language' : ['c++', 'python', 'perl']}
print(dic['favorite_language'])
output : c++, python, perl

print(dic['favorite_language'][0])
output : c++


از طرف مهندس
@milad_ghasemi_1

🔰 @raspberry_python
🌟 PyAudio Documentation


PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio on a variety of platforms



https://people.csail.mit.edu/hubert/pyaudio/docs/


🔰 @raspberry_python
🌟 LibROSA

LibROSA is a python package for music and audio analysis. It provides the building blocks necessary to create music information retrieval systems.



http://librosa.github.io/librosa/

🔰 @raspberry_python
🌟 Read and write WAV files in python


https://docs.python.org/3/library/wave.html

🔰 @raspberry_python
Pair Correlation Function Analysis of Fluorescence Fluctuations in Big Image Time Series using Python

https://www.lfd.uci.edu/~gohlke/ipcf/

🔰 @raspberry_python
کانال آموزش میکروکنترلر و زبان C 👇

@C_MICRO
Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
coding.pdf
1.2 MB
🌟 شش مثال مهم و کاربردی کدینگ و دیکدینگ
نویسنده : فرهاد ناصری زاده @farhad3412

🔰 @raspberry_python
لینک گروه رمزنگاری
https://t.me/joinchat/Bi883BH1gstrrfsxssdu7g

ادمین
@farhad3412