i have created a zip file called shoppy and put "cats.txt" in it and now i want to extract it but my code doesn't work it gives me this error
AttributeError: '_io.TextIOWrapper' object has no attribute 'extract'
here is my code
from zipfile import *
z=open("shoppy.zip","U")
z.extract("cats.txt")