4.4 - אקסטרות - פתרון
שומר סף¶
PASSWORD = "1234"
password = input("Enter password: ")
if password != PASSWORD:
print("Wrong password. Exiting.")
exit()
print("Welcome!")
print("Continuing the program...")
עזרה¶
הריצו help(str) ב-console וחפשו מתודות מעניינות. לדוגמה: