Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5 4 4 2 1
برنامه محاسبه سود بانکی 💸 💸
مدت زمان نگهداری پول تو بانک ، درصد سود ، مقدار پول به عنوان ورودی میگیره و محاسبه میکنه که تو🔠 روز چقدر سود پولمون میشه❔
🖥 @DevLosso
مدت زمان نگهداری پول تو بانک ، درصد سود ، مقدار پول به عنوان ورودی میگیره و محاسبه میکنه که تو
#sood bank
def calculate_interest(principal, sood, days):
interest = (principal * sood * days) / (100 * 365)
return interest
try:
days = int(input("how many DAYS have you kept your money in the bank? : "))
sood = float(input("eenter the annual interest rate: "))
principal = float(input("enter the amount of money: "))
interest = calculate_interest(principal, sood, days)
print(f"Your interest for {days} days is: {interest:.1f} currency")
except ValueError:
print("invalid values")
#output
#how many DAYS have you kept your money in the bank? : 30
#eenter the annual interest rate: 23
#enter the amount of money: 100000000
#Your interest for 30 days is: 1890411.0 currency
Please open Telegram to view this post
VIEW IN TELEGRAM
امروز ی کد باحالو کاربردی اوردیم که متنو به صورت ویس میخونه براتون📞 🎙
زبانش پایتونه🐍
🖥 @DevLosso
زبانش پایتونه
import pyttsx3
from colorama import init , Fore
init()
def txt_speech(text):
engine = pyttsx3.init()
engine.setProperty('rate', 150)
engine.setProperty('voice', 'com.apple.speech.synthesis.voice.Alex') #for mac
engine.say(text)
engine.runAndWait()
text = input(Fore.RED + "enter your txt:" + Fore.GREEN)
txt_speech(text)
Please open Telegram to view this post
VIEW IN TELEGRAM
1❤5🥰3👏3👎2 2 2 2
برنامه محاسبه سن به صورت دقیق 🎂 😈
😄 @DevLosso
#age calculator
from datetime import datetime
def calculate_age(birth_date_str):
birth_date = datetime.strptime(birth_date_str, "%Y-%m-%d")
today = datetime.today()
age_days = (today - birth_date).days
years = age_days // 365
months = (age_days % 365) // 30
days = (age_days % 365) % 30
return years, months, days
print("enter your birth date in format YYYY-MM-DD:")
birth_input = input("> ")
try:
y, m, d = calculate_age(birth_input)
print(f"your age is: {y} years, {m} months, and {d} days")
except:
print("Invalid date format Please use YYYY-MM-DD")
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6 4 3👏1💯1
Word Finder 📝 📝
با این برنامه میتونید متن مورد نظر وارد کنید و تعیین کنید که برنامه دنبال چه کلمه هایی بگردد و در نتیجه برنامه قسمتی که کلمه در اون متن بود هایلایت میکنه و همچنین تعداد تکرار اون کلمه تو اون متن نمایش میده🔎 🔎
این برنامه برای متون بلند که وقت خواندنش نیست خیلی میتونه کمک کنه همچنین در زمان سرچ کلمات با کاما , از هم جدا کنید✂️
📝 @DevLosso
با این برنامه میتونید متن مورد نظر وارد کنید و تعیین کنید که برنامه دنبال چه کلمه هایی بگردد و در نتیجه برنامه قسمتی که کلمه در اون متن بود هایلایت میکنه و همچنین تعداد تکرار اون کلمه تو اون متن نمایش میده
این برنامه برای متون بلند که وقت خواندنش نیست خیلی میتونه کمک کنه همچنین در زمان سرچ کلمات با کاما , از هم جدا کنید
#finder
from colorama import init, Fore, Style, Back
init(autoreset=True)
COLORS = [Fore.YELLOW, Fore.CYAN, Fore.MAGENTA, Fore.GREEN, Fore.RED, Fore.BLUE , Fore.BLACK ,Fore.LIGHTCYAN_EX , Fore.LIGHTRED_EX]
text = input("enter your text: ")
keys_input = input("keywords (word1 , word2): ")
keys = [k.strip().lower() for k in keys_input.split(",") if k.strip()]
highlighted_text = text
counts = {}
for idx, k in enumerate(keys):
color = COLORS[idx % len(COLORS)]
highlighted_text = highlighted_text.replace(k, f"{color}{k}{Style.RESET_ALL}")
highlighted_text = highlighted_text.replace(k.noscript(), f"{color}{k.noscript()}{Style.RESET_ALL}")
counts[k] = text.lower().count(k)
print(f"{Back.LIGHTMAGENTA_EX}result:{Style.RESET_ALL}")
print(highlighted_text)
print(f"{Back.LIGHTMAGENTA_EX}count:{Style.RESET_ALL}")
for idx, k in enumerate(keys):
color = COLORS[idx % len(COLORS)]
c = counts[k]
print(f" {color}{k}: {c}{Style.RESET_ALL}")
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1🤯7 3🎉2 2
+ گوگل میگه حتی چند درصد سایت ناامن هم خطرناکن، چون فقط یه ارتباط ناامن کافیه تا مهاجمها بتونن مسیر کاربر رو منحرف کنن یا اطلاعاتش رو بدزدن.
Please open Telegram to view this post
VIEW IN TELEGRAM
1 7💯3 3 2
تبدیل دیتای جیسون به فایل csv 🐍
👑 حالا شما میتونید طبق نیازتون برنامه جوری تغییر بدید که مثلا فایل json به فایل cvs و... تغییر بدید👑
🅰 🅰 🅰
🩷 @DevLosso
import json
import csv
json_data = [{'name': 'علی', 'age': 1}, {'name': 'لوسو', 'age': 18}]
with open('csvfile.csv', 'w', newline='', encoding='utf-8') as f:
writer = csv.DictWriter(f, fieldnames=json_data[0].keys())
writer.writeheader()
writer.writerows(json_data)
print("successfuly")
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5 5💋3 2 1
در گیتهاب4️⃣ Typenoscript 🖥 به محبوبترین زبان برنامهنویسی 🖥 تبدیل شده و از پایتون🐍 جلو زده🔝
💚 @DevLosso
Please open Telegram to view this post
VIEW IN TELEGRAM
دنیای هک و امنیت سایبری، جایی برای یادگیری، تجربه و پیشرفت!
🛡️ تحلیل آسیبپذیریها و روشهای دفاعی
@Kali_legends
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6❤3 2👏1 1 1
چالش داریم آسون و جذاب
اولین نفری که با پایتون کدی بزنه که خروجیش بشه این و کدو تو کامنتا بفرسته بین این دوتا گیفت یکی به انتخاب خودش بهش تعلق میگیره
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
دوست عزیزمون خیلی سریع به چالش پایان دادن 😄
ایشالله تا چالش های بعدی و برنده های بعدی🩷
ایشالله تا چالش های بعدی و برنده های بعدی
Please open Telegram to view this post
VIEW IN TELEGRAM
🎉7😍3🤣3❤2 1
🔗 آدرس رسمی: apps.apple.com
Please open Telegram to view this post
VIEW IN TELEGRAM