189k views
2 votes
What command would you use to change the width of the turtle's pensize to 6 pixels?

1) pensize(6)
2) width(6)
3) penwidth(6)
4) size(6)

1 Answer

2 votes

Final answer:

In the context of turtle graphics, to change the turtle's pensize to 6 pixels, you can use either 'pensize(6)' or 'width(6)'

Step-by-step explanation:

To change the width of the turtle's pensize to 6 pixels in turtle graphics, a popular library for introducing programming to beginners, you should use the command pensize(6) or width(6). Both commands will achieve the desired result. Therefore, options 1 and 2 in your list are correct.

User Wesley Ranger
by
8.2k points