Update for Python Ai

This commit is contained in:
Mert Gör ☭ 2024-02-14 17:58:00 +03:00
parent a70f19fefb
commit d39648c736
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1,17 @@
print("python dersi sonu\n")
def user_input():
# Kayıtlı kullanıcı adı ve şifre
registered_user = "kullanici"
stored_password = "sifre123"
# Kullanıcıdan bilgileri alma
user_name = input("Kullanıcı Adı: ")
password = input("Şifre: ")
# Kullanıcı adı ve şifre kontrolü
if user_name == registered_user and password == stored_password:
print("Giriş başarılı! Hoş geldiniz, {}.".format(user_name))
else:
print("Hatalı kullanıcı adı veya şifre. Tekrar deneyin.")
# Kullanıcı girişi fonksiyonunu çağırma
user_input()