بوابة أمان تتحقق من شرطين:
age = 20 has_id = True if age >= 18 and has_id: print("ادخل") else: print("ممنوع")