Python Socket help (Syntax error)
<pre><code>import socket

HOST = "swemach.se"
PORT = 21
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT)
data = s.recv(1024)
s.close()
print "%s" % data
</code></pre>

<p>Gives me error</p>

<pre><code>File "main.txt", line 7
data = s.recv(1024)
  ^
SyntaxError: invaild syntax
</code></pre>

<p>What im going wrong? any tip/solution?</p>
