+ 1

Unicode error?

i'm creating an advanced login page, in which it requires to compare the users credentials to a username and password written onto a text file. but for some reason i keep getting a unicode error on lines 49 to 50 when i try to open the file, could someone tell me what i'm doing wrong here? here's my code: https://code.sololearn.com/ck3TPv3Stuw4

18th Nov 2017, 8:55 PM
X-1
X-1 - avatar
1 Réponse
+ 3
The issue is with the string, you either need to duplicate all backslashes, or prefix the string with r (to produce a raw string). with open(r'''C:\Python projects\GUI programming\Advanced login\Usernames and passwords.txt''', "r+")
18th Nov 2017, 11:26 PM
Adrian Perales
Adrian Perales - avatar