I am using pygame 1.9.2pre with python3. When I run idle3 and type
>>> import pygame
>>> pygame.init()
this works perfectly however when I write these two lines in a .py file and then run it in idle3 (by opening it and hitting F5) I get this messege
Traceback (most recent call last):
File "/home/nabeel/Devalopment/Python/pygame.py", line 6, in <module>
import pygame
File "/home/nabeel/Devalopment/Python/pygame.py", line 9, in <module>
pygame.init()
AttributeError: 'module' object has no attribute 'init'