Python Key Testing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

8th Jul 2017, 7:59 PM
Gage Young
Gage Young - avatar
8 Answers
+ 1
It works on my playground, not in my terminal.
8th Jul 2017, 8:22 PM
Gage Young
Gage Young - avatar
0
I want to print it, not ask for user input.
8th Jul 2017, 8:05 PM
Gage Young
Gage Young - avatar
0
what version of python you use?
8th Jul 2017, 8:12 PM
Stelios Power
Stelios Power - avatar
0
i test it on python 3 and works normally your code is ok
8th Jul 2017, 8:13 PM
Stelios Power
Stelios Power - avatar
0
I use 3.6, but I edit my code with Atom ( Atom.io ).
8th Jul 2017, 8:13 PM
Gage Young
Gage Young - avatar
0
Try to run your code in code playground
8th Jul 2017, 8:16 PM
Stelios Power
Stelios Power - avatar
0
It kinda works in my playground, it asks me for an input before it prints.
8th Jul 2017, 8:18 PM
Gage Young
Gage Young - avatar
0
in the input that asks when you press run write this : QU9lHj63sNQRV4efbG
8th Jul 2017, 8:20 PM
Stelios Power
Stelios Power - avatar