Python Variables Actually “Labels” Hote Hain
Bahut log sochte hain variable box hai, but Python me variable ek “reference label” hota hai.
Input:
a = [1, 2, 3]
b = a
b.append(4)
print(a)
Output:
Python
[1, 2, 3, 4]
Kyu hua?
Kyuki a aur b dono same list object ko point kar rahe hain.
Bahut log sochte hain variable box hai, but Python me variable ek “reference label” hota hai.
Input:
a = [1, 2, 3]
b = a
b.append(4)
print(a)
Output:
Python
[1, 2, 3, 4]
Kyu hua?
Kyuki a aur b dono same list object ko point kar rahe hain.
❤1
Forwarded from Rehan Ahmed Arhan
Brother can you teach US how can we sent otp to Amar bind Gmail?
❤🔥1
Rehan Ahmed Arhan
Brother can you teach US how can we sent otp to Amar bind Gmail?
Yes you can do it for login or verification systems
It Creates 6 Digit OTP
To send to Gmail
Python generates OTP Gmail sends it user verifies it
import random
otp = random.randint(100000, 999999)
print("OTP:", otp)
It Creates 6 Digit OTP
To send to Gmail
import smtplib
from email.mime.text import MIMEText
sender = "yourgmail@gmail.com"
password = "your_app_password"
receiver = "user@gmail.com"
otp = "483921"
msg = MIMEText(f"Your OTP is: {otp}")
msg["Subject"] = "Verification OTP"
msg["From"] = sender
msg["To"] = receiver
server = smtplib.SMTP("smtp.gmail.com", 587)
server.starttls()
server.login(sender, password)
server.sendmail(sender, receiver, msg.as_string())
server.quit()
print("OTP Sent")
Python generates OTP Gmail sends it user verifies it
❤3❤🔥2
Rehan Ahmed Arhan
Brother can you teach US how can we sent otp to Amar bind Gmail?
I can explain more easy if you want
🥰4👍1
This media is not supported in your browser
VIEW IN TELEGRAM
Topic :- How To Clone Api
I will also upload Video On it With Full Steps Don't Worry If You Don't Understand Just Comment And Tell If You Want Live Tutorial
I will also upload Video On it With Full Steps Don't Worry If You Don't Understand Just Comment And Tell If You Want Live Tutorial
🥰1
Kya seekhna chahte ho?
(What You Want Learn)
(What You Want Learn)
Final Results
56%
🐍 Python Mastery (Zero to Hero)
28%
🤖 Telegram Bot Development
17%
🌐 Web Scraping & Automation
39%
💻 Hacking Tools Development
17%
📱 Android App Reverse Engineering
17%
🛡️ Cybersecurity Basics
28%
⚡ API Development & Integration
22%
🎨 Web Development (HTML/CSS/JS)