0

Can anyone please help me to understand from line 10 to the last line?

import turtle t=turtle.Turtle() s=turtle.Screen() s.bgcolor("black") t.pencolor("green") t.speed(0) t.penup() t.goto(0,105) t.pendown() a=0 b=0 while True: t.forward(a) t.right(b) a+=1.3 b+=1 if b==206: break t.hideturtle() turtle.done() the topic of this code is the most important topic of nowadays. I find it from sololearn. I don't understand from the beginning line10 to the last line.can anyone please explain this lines for me? And here if i want to write "Covid-19" bellow it or above it I'm using here print("Covid-19") But for this line it shows nothing 😒 Why?

15th May 2020, 6:09 PM
sumaiya sharmin
sumaiya sharmin - avatar
7 Respuestas
0
Am not know much about turtle. But from sources, I understood this: t.forward(a) : Move the turtle forward by the specified distance 'a', in the direction the turtle is headed. f.right(b) : Turn turtle right by b units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on the turtle mode, see mode(). a value is increasing by 1.3, using for line draw b value is increasing by 1, using for gradually changing direction, When b ==206 while loop, exits. t.hideturtke() : Make the turtle invisible. It’s a good idea to do this while you’re in the middle of doing some complex drawing, because hiding the turtle speeds up the drawing observably. turtle.done() : tells turtle Program is done. https://www.google.com/amp/s/www.geeksforgeeks.org/turtle-programming-JUMP_LINK__&&__python__&&__JUMP_LINK/amp/ Screen.title("Covid 19") Or turtle.write("covid 19") may works....
15th May 2020, 7:03 PM
Jayakrishna 🇮🇳
0
Kibbo Ghayel I mention it that i found this code from sololearn.🙄😑 So you are here then let me understand full code.give me explanation 🙄😒 i don't understand last lines and how to write bellow it covid-19 in Python 🤔🤔
15th May 2020, 7:28 PM
sumaiya sharmin
sumaiya sharmin - avatar
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 questioner just want explanation only.. You made code public, so others from community can be allowed to view and use in discussions. Credits can must be given only, when the program is saved in him/her profile and used it publicly... And it is there already mentioned that it is found in Sololearn.. So if you feel, it is copyed then you can report it directly.. Hoping you understand it..
16th May 2020, 5:01 AM
Jayakrishna 🇮🇳