How to Create Password Protected Zip file?

  python, python-3.x

i want to zip a text file with password how can i achive it

for example

filename = "./data.txt"
password = "1234"

Source: Python-3x Questions

LEAVE A COMMENT