Pergunta de entrevista da empresa Cogenra Solar

Make a python script to generate a square wave pattern with a certain spacing.