+ 1
Python Key Testing
I am developing a python database, that well... Has a key. I am having problems though: import time # Copyright (c) 2017 Copyright Secure Test All Rights Reserved. statement = print ("Welcome to the Secure Test Network.") time.sleep(2) resource_one = input ("Enter the network key too continue: ") if resource_one == 'QU9lHj63sNQRV4efbG': time.sleep(2) print ("Your key has been accepted\nLaunching Database") The output is: File "/Users/PythonDeveloper/Desktop/Secure Network/program.py", line 3 statement = print ("Welcome to the Secure Test Network.") ^ SyntaxError: invalid syntax
8 odpowiedzi
+ 1
It works on my playground, not in my terminal.
0
I want to print it, not ask for user input.
0
what version of python you use?
0
i test it on python 3 and works normally
your code is ok
0
I use 3.6, but I edit my code with Atom ( Atom.io ).
0
Try to run your code in code playground
0
It kinda works in my playground, it asks me for an input before it prints.
0
in the input that asks when you press run write this : QU9lHj63sNQRV4efbG