Name:Emily
What package must be imported to use Tina's turtle commands?
Apuntes
Name:Emily Cruz Instructions Complete each of the following activities. Take a screenshot of your code and paste it under each activity. You must be familiar with all these exercises. This is a practice for your unit 1 test. If you understand these activities you have the expected level. If you do not, find help on time. This activity is over 3 points. The other 7 points are earned in the Unit test next week. Topic 1: Tina´s basic commands to draw (Slides 8 and 10) Link Remember to keep the first 3 lines of the code, where Tina´s package is imported and set. Activity: 1. Draw a triangle with a length of 40 units in color green. Then, move to a different position and draw a red square of 60 units length and fill it with color red. 2. import turtle 3. tina = turtle.Turtle() 4. tina.shape('turtle') 5. 6. tina.penup() 7. tina.goto(60,50) 8. tina.pendown() 9. 10. number_list=[1,2,3] 11. 12. tina.color("green") 13. for number in number_list: 14. tina.forward(40) 15. tina.left(120) 16. 17. 18. tina.penup 19. Topic 2: Lists and indexes (Slides 11 and 19) Link Activity: 20. Create a list called “days” and add the seven days of the week as its elements. Then, using indexing and the print fun...
Estudia con juegos interactivos
Sube tus apuntes y genera flashcards, examenes y mas con IA
Empezar gratis