🐍 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 Python Socket
Scapy Installation and Usage.pdf
326.6 KB
اولین مطلب از مجموعه مباحث Scapy جهت مطالعه به پیوست آمده است. لطفا مطالعه بفرمائید.
#Scapy
#pythonsocket
Forwarded from Sadra Codes
🔍 Create Your Own Command in Linux like rtls


https://ccm.net/faq/2540-linux-create-your-own-command

🔰 @lnxpylnxpy
This media is not supported in your browser
VIEW IN TELEGRAM
Arduino. Raspberry pi. 3dprint. Rubiks cube

@raspberry_python
Forwarded from Python Socket
Python Sec - RSA - Part1.pdf
271.4 KB
دوستان سلام. مطلب RSA رمزنگاری نامتقارن بخش اول به پیوست آمده است. موضوع اصلی برنامه نویسی با پایتون خواهد بود که در شماره ۲ ارایه می شود.
@pythonsocket
#Sec
#آموزش

نوشتن در فایل اکسل با پایتون

❇️ How to Write to a CSV File in Python

import csv

studentsdata= [["Jessica Wallens", 1987], ["Samantha Peters", 1988],
["Jessica Warren", 1990]]

with open ("Students.csv", "w", newline="") as file:
writedata= csv.writer(file)
writedata.writerows(studentsdata)


🔰 @raspberry_python
چند کتاب در حوزه رمزنگاری 👇
از طرف مهندس
@Druidlord
#آموزش دستورات شرطی در پایتون

Condition in python



age = 12
name = 'ali'
language = 'python'

if age == 12:
print("age is 12")
#output : age is 12

if age is 12:
print("age is 12")
#output : age is 12

if age == 13:
print("ok")
else:
print("less than 13")
#output : less than 13

if age == 14:
print("age is 14")
elif age == 13:
print("age is 13")
elif age == 12:
print("age is 12")

if age is not 13:
print("age is not 13")
#output : age is not 13

if age >= 12:
print("ok")
#output : ok

if age <= 13:
print("ok")
#output : ok

if age != 12:
print("ok")
# مخالف ۱۲ نیستشage اجرا نمیشه چون

if name == 'ali' and age == 13:
print("welcome1")
#output : اجرا نمیشه چون شرط دوم برقرار نشده و شرط کلی اجرا نمیشه

if name == 'ali' or age == 13:
print("welcome")
#output : welcome

if name == 'ali' and (age == 14 or language == 'python'):
print("welcome")
#output : welcome

lst = [1, 2, 3 , 4]
if 1 in lst:
print("1 is in list")
#output : 1 is in list

if 6 not in lst:
print("6 is not in list")
#output : 6 is not in list

age = 14
name = "ali" if age < 12 else "mohammad"
print(name)
#output : mohammad

name = 'ali' if age < 15 else 'vali' if age > 15 else 'hasan'
print(name)
#output : ali

if age < 15:
if age > 15:
print('vali')
else:
print('ali')
else:
print('hasan')
#output : ali

name = (('vali', 'mohammad')[age > 12])
print(name)
#output : mohammad

name = (('vali', 'mohammad')[True])
print(name)
#output : mohammad

name = ('hasan', 'babak')[age < 12]
print(name)
#output : hasan
name = ('hasan', 'babak')[False]
#output : hasan

name = (age < 20) and 'ali' or 'hasan'
print(name)
#output : ali

name = {True: 'ali', False: 'hasan'}[age < 20]
print(name)
#output : ali

name = ((age > 20) and ['ali'] or ['hasan'])
print(name)
#output : ['hasan']

name = ((age > 20) and ['ali'] or ['hasan'])[0]
print(name)
#output : hasan

x = [True, True, False]
if any(x):
print("At least one True")
#output : At least one True

if all(x):
print("Not one False")
else:
print("At least one False")
#ouput : At least one False

if any(x) and not all(x):
print("At least one True and one False")
#output : At least one True and one False
با تشکر از مهندس
@milad_ghasemi_1

❇️ @raspberry_python