کد زیر برای محاسبه مضرب های ی عددی که به دلخواه وارد میکنید هست روند کار ساده هست و صرفا ی مثاله که با کارکرد lambda و map اشنا شید 💛
لامبدا : تابع ناشناس ( برای استفاده کوتاه مدت)
مپ : برای اعمال تابع روی تمام عنصرا
🅰 🅰 🅰 🫴
💙 @DevLosso
لامبدا : تابع ناشناس ( برای استفاده کوتاه مدت)
مپ : برای اعمال تابع روی تمام عنصرا
num = int(input("Enter a number: "))
table = list(map(lambda x: num * x, range(1, 11)))
for i in range(10):
print(num, 'x', i+1, '=', table[i])
Please open Telegram to view this post
VIEW IN TELEGRAM
password = input("Enter your password: ")
hidden_password = "*" * len(password)
print("Your hidden password is:", hidden_password)ی تیکه کد باحال کاربردشم میشه گفت برا استفاده توی پروژه های مبتدی
دوستان اگر ایده ای دارید برای محتوا های کانال لطفا تو کامنتا بگید
Please open Telegram to view this post
VIEW IN TELEGRAM
مهم ترینش اینه که اگر تو به فیلتر شکن وصل باشی دیگه نیاز نیست اونا وصل بشن و نت اونا هم بدون فیلتره
اشتراک اینترنت از هر نوع اتصال (WiFi، کابل، VPN و...
ساخت صفحه ورود (مثل وایفای کافیشاپها)
بلاک سایتها یا برنامههای خاص کنترل پهنای باند و فیلتر تبلیغات
حتی میتونی ببینی هر کسی چی باز کرده (اگه بخوای)
Please open Telegram to view this post
VIEW IN TELEGRAM
+ گوشیهای Galaxy S22، S23، S24، Z Fold4 و Z Flip4 در کشورهای خاورمیانه از جمله ایران و عراق هدف این حمله بودن.
Please open Telegram to view this post
VIEW IN TELEGRAM
💯6 3🥰2 2 1 1
طبق سیاست جدید، اگه یه اپ در طول 24 ساعت بیشتر از 2 ساعت Wake Lock فعال داشته باشه و این اتفاق برای حداقل 5% از کاربران در 28 روز گذشته تکرار بشه، گوگل اون رو بهعنوان اپ پرمصرف علامتگذاری میکنه!
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6 5💯2 2 2🤬1
@DevLosso
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7 2 2 2😐1
Please open Telegram to view this post
VIEW IN TELEGRAM
ی پروژه تمرینی باحال با پایتون 😉 ✨
✅ @DevLosso
کاربرد این پروژه اینه که مشخص کاربر تو مصرف انرژی در چه سطحی هست تو این پروژه میایم ی مقداریو مشخص میکنیم و اگر کاربر بیشتر از اون مقدار آب , برق , گاز مصرف کرده باشه بهش میگه مصرفتون زیاده و...
from colorama import Fore , init
init()
def home_calculator(power, water, gas):
limits = {"power": (power, 1100), "water": (water, 500), "gas": (gas, 500)}
over = [name for name, (value, limit) in limits.items() if value > limit]
if over:
return f"{Fore.RED}high consumption!\nconsumption in:{Fore.YELLOW}{', '.join(over)}"
return Fore.GREEN + "normal consumption"
print(home_calculator(120, 80, 51))
Please open Telegram to view this post
VIEW IN TELEGRAM
❤🔥9❤3😎3🙏1 1
آدا لاولیس (Ada Lovelace)
🟠 آدا لاولیس در ۱۰ دسامبر ۱۸۱۵ در لندن به دنیا آمد و دختر شاعر معروف لرد بایرون بود. او تحت تأثیر مادرش که به علوم و ریاضیات علاقهمند بود، به این حوزهها روی آورد.
🟠 آدا با چارلز بابیج، "پدر کامپیوتر"، همکاری کرد و در سال ۱۸۴۳ مقالهای درباره ماشین تحلیلی او نوشت که شامل اولین الگوریتم برنامهنویسی تاریخ بود. به همین دلیل، او به عنوان اولین برنامهنویس شناخته میشود.
⏺ آدا لاولیس در ۲۷ نوامبر ۱۸۵۲ در سن ۳۶ سالگی درگذشت، اما تأثیر او بر دنیای فناوری و علوم کامپیوتر همواره باقی مانده است. او نمادی از توانمندیهای زنان در این حوزه محسوب میشود.
⚜ @DevLosso
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
سورس کد انیمیشن برای دیزاین سایتتون✨ 🔥
🔔 @DevLosso
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<noscript>CodeHub</noscript>
<style>
body {
margin: 0;
background: #150133;
}
#particles-js {
width: 100%;
height: 100vh;
background: #150133;
position: fixed;
top: 0;
left: 0;
}
</style>
</head>
<body>
<div id="particles-js"></div>
<!-- CDN لایبرری -->
<noscript src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></noscript>
<noscript>
particlesJS("particles-js", {
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": { "value": "#22CC43" },
"shape": { "type": "circle" },
"opacity": { "value": 1.5 },
"size": {
"value": 3,
"random": true
},
"line_linked": {
"enable": true,
"distance": 180,
"color": "#0FFF50",
"opacity": 0.7,
"width": 1
},
"move": {
"enable": true,
"speed": 3
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
}
},
"modes": {
"grab": {
"distance": 250,
"line_linked": {
"opacity": 1
}
}
}
},
"retina_detect": true
});
</noscript>
</body>
</html>
Please open Telegram to view this post
VIEW IN TELEGRAM
1 11 5 3❤2
This media is not supported in your browser
VIEW IN TELEGRAM
ی ایمیل باکس خوشگل ، ساده برای حامیان چنل❤ 🍸
❣ @DevLosso
<!DOCTYPE html>
<html lang="en">
<!-- DevLosso --- CodeHubIR -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<noscript>Feedback Form</noscript>
<!-- DevLosso --- CodeHubIR -->
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(to right, #2c3e50, #34495e);
padding: 0;
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #ecf0f1;
}
.form-container {
background-color: #2c3e50;
padding: 40px;
border-radius: 15px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
max-width: 400px;
width: 100%;
text-align: center;
position: relative;
overflow: hidden;
}
h2 {
margin-bottom: 20px;
color: #1abc9c;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}
input[type="email"],
textarea {
width: 100%;
padding: 15px;
margin: 10px 0;
border: 1px solid #16a085;
border-radius: 5px;
box-sizing: border-box;
transition: border-color 0.3s, transform 0.2s;
background-color: #ecf0f1;
color: #2c3e50;
font-size: 14px;
}
input[type="email"]:focus,
textarea:focus {
border-color: #1abc9c;
outline: none;
transform: scale(1.01);
}
button {
background-color: #16a085;
color: #fff;
padding: 15px;
border: none;
border-radius: 5px;
cursor: pointer;
width: 100%;
font-size: 16px;
transition: background-color 0.3s, transform 0.2s;
}
button:hover {
background-color: #1abc9c;
transform: scale(1.05);
}
.footer {
position: absolute;
bottom: 10px;
left: 10px;
font-size: 12px;
color: #bdc3c7;
text-align: center;
}
.footer a {
color: #1abc9c;
}
</style>
<!-- DevLosso --- CodeHubIR -->
</head>
<body>
<!-- DevLosso --- CodeHubIR -->
<div class="form-container">
<h2>Feedback to Support</h2>
<form action="DevLosso_CodeHubIR@example.com" method="post" enctype="text/plain">
<input type="email" id="email" name="email" required placeholder="Enter your email">
<textarea id="message" name="message" rows="5" required placeholder="Enter your message"></textarea>
<!-- DevLosso --- CodeHubIR -->
<button type="submit">Send Feedback</button>
</form>
<div class="footer">
© 2025 DevLosso - CodeHubIR | <a href="#">Privacy Policy</a>
</div>
</div>
</body>
</html>
<!-- DevLosso --- CodeHubIR -->
Please open Telegram to view this post
VIEW IN TELEGRAM
👾6 6 3❤2 2
A photorealistic winter-lifestyle portrait of the same man from the uploaded photo, perfectly matching his real facial features, haircut, and body proportions. He is sitting on the open trunk of a car in a snowy clearing beside a pine forest, with soft snow drifting in the air.
He wears layered winter clothing in a masculine style: cream/ivory knit sweater, a fitted winter jacket, dark winter pants, a ribbed beanie hat, and sturdy black-and-white winter boots. His pose is relaxed and natural, seated confidently without drawing attention to the lower body. He holds a white paper cup with both hands, faint steam rising. Optional small deer near the tree line.
35–50 mm look, f/2.8–4, shallow depth of field, soft overcast daylight, warm luxury winter palette, lifelike skin and fabric texture, clean composition.
Presentation lock: replicate his exact appearance from the uploaded photo.
Wardrobe integrity: keep winter clothing consistent with his masculine style.
A photorealistic winter-lifestyle portrait of the same woman from the uploaded photo, matching her real facial features, hair length/style, and body proportions. She is sitting on the open trunk of a car in a snowy clearing beside a pine forest, soft snow drifting in the air.She wears cream/ivory knit winter layers (sweater and feminine winter bottoms that match her reference style), a ribbed pom-pom hat, and black-and-white winter boots. Her pose is modest and relaxed, legs positioned naturally without drawing attention to the lower body. She holds a white paper cup with both hands, faint steam rising. Optional small deer near the tree line.35–50 mm look, f/2.8–4, shallow DoF, soft overcast daylight, warm luxury palette, lifelike skin and fabric texture, clean composition.Presentation lock: replicate her exact appearance from the uploaded photo.Wardrobe integrity: keep winter clothing consistent with her style.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7 4 3💯2👎1🌚1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6 4 3 2🤔1 1