There are different ways to draw a line on canvas. The option that will print a vertical line is canvas.draw_line ((100,140),(100,40)
The Canvas widget are known to often supplies graphics facilities. Examples of these graphical objects are lines, circles, etc.
They are tools that is used to draw graphs and plots, create graphics editors, etc. canvas.draw_line ((100,140),(100,40) is often used to draw vertical line.
Learn more about a draw a line on canvas from
https://brainly.com/question/20475581