otpcapstone / otp.py
gamersimy's picture
Rename otp to otp.py
4968a3f verified
raw
history blame
271 Bytes
import random
def send_otp_to_email(email):
# Generate OTP
otp = ''.join([str(random.randint(0, 9)) for _ in range(6)])
# Simulate sending OTP to email (print for demonstration)
print(f"OTP {otp} sent to email address: {email}")
return otp