Python Turtle graphics | part 2 | Python Tutorials for Beginners #lec112

preview_player
Показать описание
in this lecture we will learn :
- Different ways of importing turtle module
- Different Turtle methods like : pencolor(), fillcolor(), color(), begin_fill(), end_fill(), isdown(),m isvisible(), position(), pos(), goto()
- how to draw a filled circle?
- how to move turtle to a specific position?
- how to show and hide turtle- showturtle(), hideturtle()

*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#turtle #turtlegraphics #python #pythonprogramming #pythonforbeginners #jennyslectures
Рекомендации по теме
Комментарии
Автор

Thanks maam for the lectures. Comments are very less keeping the fact in consideration that the content is fabulous, maybe students did'nt reach till this lecture and are in middle of the series.
Thanks for your time, efforts and crystal clear explanation free of cost. I have seen many videos of yours, but not to sound rude, it's not possible to comment down in every video to say thanks as it breaks the flow of study as well as many students watches the videos just before exam or few days before exam. Therefore I would like to convey the same in behalf of all the students.
Personally, I haven't watched all the videos of this series, but many of the topics in which I was stuct or which was new to me. Those videos were super helpful.
I would like to request you to explain the 2 thing :
First, virtual environment like pandas in a detailed manner; basically the installation process
Second; The shortcuts keys of pycharm and VScode.
And last but not the least, you are cute, hehehe, the fact is fact, I can't deny that. Your cuteness is a reason of watching your content without getting bored, I mean "Mann laga hua rehta hai", aapka chehra andar se glow karna hai, chamak hai chehre mein (Itna hi bolunga😅
😅)
We students actually value this kind of content

lokesh
Автор

Assignment:-

from turtle import Turtle, Screen
s1 = Screen()
tom = Turtle()
tom.speed(0)
tom.shape("turtle")
tom.hideturtle()

tom.pencolor("yellow")
tom.circle(50)

tom.penup()
tom.forward(200)

tom.pendown()
tom.pencolor("red")
tom.lt(90)
tom.forward(100)
tom.rt(90)
tom.forward(100)
tom.rt(90)
tom.forward(100)
tom.rt(90)
tom.forward(100)
tom.showturtle()

tom.penup()
tom.lt(90)
tom.forward(200)

tom.pendown()
tom.pencolor("pink")
tom.lt(18)
tom.forward(50)
tom.lt(72)
tom.forward(50)
tom.lt(72)
tom.forward(50)
tom.lt(72)
tom.forward(50)
tom.lt(72)
tom.forward(50)

tom.penup()
tom.goto(-50, -250)
tom.pendown()

tom.pencolor("orange")
tom.setheading(0)
tom.forward(100)
tom.setheading(120)
tom.forward(100)
tom.setheading(240)
tom.forward(100)
s1.mainloop()

OPRAJA
Автор

❤ you mam, you teach very well and are good looking too, I'm glad that i am studying from you😊

midnightphantom
Автор

Assignment @ 33:00

from turtle import Turtle

tom = Turtle()
tom.hideturtle()
# circle

tom.color('yellow')
tom.penup()
tom.goto(-200, 100)
tom.pendown()
tom.circle(50)

# square
tom.penup()
tom.goto(100, 100)
tom.color('red')
tom.pendown()
tom.forward(100)
tom.left(90)
tom.forward(100)
tom.left(90)
tom.forward(100)
tom.left(90)
tom.forward(100)

# Triangle

tom.penup()
tom.goto(-250, -200)
tom.pendown()
tom.left(90)
tom.color('green')
tom.forward(100)
tom.left(120)
tom.forward(100)
tom.left(120)
tom.forward(100)

# pentagon
tom.penup()
tom.goto(100, -200)
tom.color('blue')
tom.pendown()
tom.left(120)
tom.forward(100)
tom.left(60)
tom.forward(100)
tom.left(90)
tom.forward(100)
tom.right(120)
tom.backward(100)
tom.left(75)
tom.backward(90)

tom.screen.mainloop()

vishnumuraly
Автор

Mam, you re beauty with mind... Salute to your initiative and giving wonderful lectures.

minecode
Автор

Assignment @26:03
Answer:
tom.color("red", "orange")
tom.begin_fill()
tom.circle(50)
tom.end_fill()

Understood the concept, Thank you ma'am 😊😊

aishwaryagandhi
Автор

Assignment:
import turtle as t

#creating screen
screen=t.Screen()
screen.title("Assignment From Jenny lecturer")
screen.bgcolor("black")

#Creating turtle object for circle
circle=t.Turtle("turtle")
circle.speed(6)
circle.color("yellow", "blue")
circle.pensize(5)
circle.penup()
circle.goto(-300, 100)
circle.pendown()
circle.begin_fill()
circle.circle(100)
circle.end_fill()
circle.hideturtle()


#Creating turtle for Rectangle
rectangle=t.Turtle("turtle")
rectangle.speed(6)
rectangle.color("red", "green")
rectangle.pensize(5)
rectangle.penup()
rectangle.goto(100, 100)
rectangle.pendown()
rectangle.begin_fill()
for _ in range(4):
rectangle.forward(200)
rectangle.left(90)
rectangle.end_fill()
rectangle.hideturtle()


#Creating the turle for triangle
triangle=t.Turtle("turtle")
triangle.speed(6)
triangle.color("green", "red")
triangle.pensize(5)
triangle.penup()
triangle.goto(-400, -300)
triangle.pendown()
triangle.begin_fill()
for _ in range(3):
triangle.forward(200)
triangle.left(120)
triangle.end_fill()
triangle.hideturtle()

#Creating the turtle for pentagon
pentagon=t.Turtle("turtle")
pentagon.speed(6)
pentagon.color("blue", "yellow")
pentagon.pensize(5)
pentagon.penup()
pentagon.goto(150, -300)
pentagon.pendown()
pentagon.begin_fill()
for _ in range(5):
pentagon.forward(150)
pentagon.left(72)#360/5=72
pentagon.end_fill()
pentagon.hideturtle()

t.done()

harinathcreationz
Автор

mam answers:


import turtle
from turtle import Turtle, Screen
t=Turtle()


t.penup()
t.goto(-150, 100)
print(t.pos())
t.pendown()

def sqaure():
t.forward(90)
t.left(90)
def sqaure_1():
for i in range(4):
sqaure()

def triange():
for i in range(3):
t.forward(100)
t.left(120)
def pentagon():
for i in range(5):
t.forward(100)
t.left(72)


t.color('yellow', 'red')
t.begin_fill()
sqaure_1()
t.end_fill()
t.penup()
t.goto(150, 100)
t.pendown()
t.color('orange', 'green')
t.begin_fill()
t.circle(50)
t.end_fill()
t.penup()
t.goto(-150, -100)
t.pendown()
t.color('pink', 'blue')
t.begin_fill()
triange()
t.end_fill()
t.penup()
t.goto(150, -100)
t.pendown()
t.color('violet', 'brown')
t.begin_fill()
pentagon()
t.end_fill()

t.screen.mainloop()

babunadigadda
Автор

Mam can you please tell where I can find python documentation

ramyakutikuppala
Автор

Assignment @26:03
tom.penup()

tom.forward(100)
tom.pendown()
tom.pensize(10)
tom.color('red', 'orange')
tom.begin_fill()
tom.circle(50)
tom.end_fill()

vishnumuraly
Автор

t.color("yellow", "orange")
t.begin_fill()
t.circle(100)
t.end_fill()

vidhyashree
Автор

Still Line is in black even though we added red color bcuz we're added the after moving forward (100)

leonelmessi
Автор

Mam what are the topics are still remaining wait for your reply?

johngkitvsr
Автор

Hiiii mam can u please teach sql and plsql series

aravindmusiq
Автор

Mam I am completed my c program by your all 150 c lecturers .
Mam Is it possible to do graphics with c ? If yes then why you not make videos on c mam. Please give me reply mam I am waiting for your reply and thank you very much mam.

KoratanaSai-ljbi
Автор

Mam you didn't answer my question

Prkshashank
Автор

U have boyfriend u tell no me application that place ...

ragaming
Автор

While I'm installing turtle showw error message pip install turtle

boys
join shbcf.ru