I have tried to save my turtle created masterpiece to my computer, but when I try to open it, I get a message saying: can't open this file. this is my programming:
from turtle import Turtle, Screen
from math import *
from random import randint
def k100():
bob = Turtle()
ts = bob.getscreen()
name = input("what would you like to call your masterpiece? ")
ts.getcanvas().postscript(file=(name, '.png'), colormode='color')
screen.onkey(k100, "o")
I have tried to save it as pdf, png, and a few others, but my pc says can't open this file every time - please help