First of all, sorry. I am new to both programming and programming on my android device, but for some reason when I go to compile this code and run it using Python For Android. It keeps returning this error:
File "/storage/emulated/programming/pass.py", line 4, in
username = input("Username: ") File"", line 1, in NameError: name 'user' is not defined
security = 0
username = ""
while not username:
username = input("username: ")
password = ""
while not password:
password = input("password: ")
if username == "user" and password == "pass":
security = 5
print (" Hello, security level is:" , security)
else:
print("invalid login")
Now, when I run this same bit of code on my PC, I do not get this error. Is anyone here familiar with writing Python code with Python For Android and Droidedit? I have installed all available modules.