AttributeError: 'socket' object has no attribute 'accpet'
<p>I was building a simple server code and i keep getting this attribute error. I dont understand why. here is my code:</p>

<pre><code>import socket
from socket import*
from time import ctime


HOST = ''
PORT = 21567
BUFSIZ = 1024
ADDR =(HOST, PORT)

tcpsersock = socket(AF_INET, SOCK_STREAM)
tcpsersock.bind(ADDR)
tcpsersock.listen(5)

while True:
    print("waiting for connection...")
    tcpclisock, addr = tcpsersock.accpet()
    print("...Connected from: "),addr

    while True:
        data = tcpclisock.recv(BUFSIZ)
        if not data:
            break
        tcpclisock.send('[%s] %s' %(ctime(), data))

    tcpclisock.close()
tcpsersock.close()
</code></pre>
