Programming
تمرین سطح متوسط : «سیستم ثبتنام ساده با چکهای بیشتر» برنامه باید این کارها رو انجام بده: نام کامل کاربر رو بگیر (input) سن کاربر رو بگیر (int) رمز عبور رو بگیر (input – بدون int) ایمیل رو بگیر (input) چکهای رمز عبور (با len و شرط): طول < ۸ → «رمز خیلی…
الان کد رو نمیزارم
فردا صبح یا شب براتون کدش رو می زارم
فردا صبح یا شب براتون کدش رو می زارم
❤2
This media is not supported in your browser
VIEW IN TELEGRAM
کد تمرین بالا
هرکی تونست کدش رو بنویسه دمش گرم و خسته نباشید 👏
هر کی هم نتونست هم اشکال نداره بازم تمرین می زارم
تلاشتون رو ولی بکنید 🌹
کانالی مخصوص برنامه نویسی :
@programming_elyar
هرکی تونست کدش رو بنویسه دمش گرم و خسته نباشید 👏
هر کی هم نتونست هم اشکال نداره بازم تمرین می زارم
تلاشتون رو ولی بکنید 🌹
کانالی مخصوص برنامه نویسی :
@programming_elyar
❤1
name = ""
age_user = 0
password_user = ""
email_USER = ""
name_and_last_name = input("enter your name and last name : ")
name = name_and_last_name
age = int(input("enter your age : "))
while age_user == 0:
if age <=13:
print("You must be over 13 years old❌")
age = int(input("enter your age : "))
elif age >= 18 and age <=99:
print("You are an adult, welcome to our group 💪✅")
age_user = age
elif age >= 13 and age <=17:
print("Adolescence! You can create accounts, but with your parents' permission.🚀")
age = int(input("enter your age : "))
else:
print("ERROR❌")
age = int(input("enter your age : "))
password = input("enter your password : ")
while password_user == "":
if len(password) <= 8:
print("Password must be more than 8 characters.❗")
password = input("enter your password : ")
elif len(password) == 9 and len(password) <= 12:
print("The password is average, acceptable, but it should be stronger ⚠️")
password = input("enter your password : ")
elif len(password) >= 12:
print("The password is very strong and professional! Excellent 👏")
password_user = password
else:
print("ERROR❌")
password = input("enter your password : ")
email = input("enter your email : ")
while email_USER == "":
if "@" in email:
print("Email successfully registered.✅")
print("Registration was successful. ")
email_USER = email
else:
print("ERROR❌")
email = input("enter your email : ")
print(f"""
name = :{name}
age = {age_user}
password = {password_user}
email = {email_USER}
""")
age_user = 0
password_user = ""
email_USER = ""
name_and_last_name = input("enter your name and last name : ")
name = name_and_last_name
age = int(input("enter your age : "))
while age_user == 0:
if age <=13:
print("You must be over 13 years old❌")
age = int(input("enter your age : "))
elif age >= 18 and age <=99:
print("You are an adult, welcome to our group 💪✅")
age_user = age
elif age >= 13 and age <=17:
print("Adolescence! You can create accounts, but with your parents' permission.🚀")
age = int(input("enter your age : "))
else:
print("ERROR❌")
age = int(input("enter your age : "))
password = input("enter your password : ")
while password_user == "":
if len(password) <= 8:
print("Password must be more than 8 characters.❗")
password = input("enter your password : ")
elif len(password) == 9 and len(password) <= 12:
print("The password is average, acceptable, but it should be stronger ⚠️")
password = input("enter your password : ")
elif len(password) >= 12:
print("The password is very strong and professional! Excellent 👏")
password_user = password
else:
print("ERROR❌")
password = input("enter your password : ")
email = input("enter your email : ")
while email_USER == "":
if "@" in email:
print("Email successfully registered.✅")
print("Registration was successful. ")
email_USER = email
else:
print("ERROR❌")
email = input("enter your email : ")
print(f"""
name = :{name}
age = {age_user}
password = {password_user}
email = {email_USER}
""")
❤3
تمرین سطح مبتدی:
دمای سانتیگراد را از کاربر گرفته و به فارنهایت تبدیل کند. (F =C*9/5+32)
کانالی مخصوص برنامه نویسی :
@programming_elyar
دمای سانتیگراد را از کاربر گرفته و به فارنهایت تبدیل کند. (F =C*9/5+32)
کانالی مخصوص برنامه نویسی :
@programming_elyar
❤2
❤2
Programming pinned «تمرین متوسط: تبدیل سال شمسی به میلادی کانالی مخصوص برنامه نویسی : @programming_elyar»