#!/usr/bin/python from math import * output = " \n" def drawline(x1, y1, x2, y2): global output output += '\n' for height in range(100, 500, 10): drawline(100, height, 300, 200 + height/5) drawline(100, 50, 100, 550) drawline(300, 50, 300, 550) output +='\n' open("ladder.svg", "w").write(output)