im trying to make a program that is password protected and once the password is entered correctly it opens a file. when i try to run the program i get a syntax error saying "EOL while scanning string literal" where i put the file path'
heres my code.
import os
while True:
print("9. exit")
print("0. close")
choice = int(input("enter password: "))
choice = int(input("enter option: "))
if (choice>=1124):
if choice ==1124:
os.starfile('C:\restriced_access\')
os.starfile('C:\restriced_access\')
this is where the problem is. its supposed to open a file folder in my Windows(C:)