module object has no attribute 'thread'
<p>I was using basic threading.
This was the code I typed.</p>

<pre><code>#!usr/bin/python3

import threading
class Bhai_ka_messenger(threading.Thread):
    def run(self):
        for message in range(10):
            print threading.currentThread().getName()

a=Bhai_ka_messenger(name="message send")
b=Bhai_ka_messenger(name="message receive")
a.start()
b.start()
</code></pre>

<p>This says module object has no attribute thread.
When I run this on an online IDE, this program works.
Now I am not able to sort this problem,can anyone help?</p>