script not working

I saw the explanation of the script but still appears
“TypeError: init() takes no arguments (1 given)”