i'm a student studying in 11th,and this tree kept my attention for last 1-2 years but I wasn't able to find the code for this finally u helped me and also explained the code to me. Thank you sir❤
I toggled with the '3' and '4' of the equation 3*i/4. From what I observed, the '3' affects how the density and number of the branches that are created. While the '4' affects how far each branch extends.
If we are just creating a loop then we can just create while or more ideal a For loop to complete this Mechanism . Why are we creating def function for completing the project as a For loop would be more efficient in this situation .
Thank you for taking the time to explain the code step by step. After all, there is no use in using code when you don't understand how it works. I also appreciate your taking to explain each written line of code and its elements.
Hello! friend i am very grateful for your work and would like you to give me more ways to improve my knowledge in Python with Manuals and Projects or even another very intensive content
I'm getting the same thing, have you figured it out? I'm absolutely sure my code ws indented correctly. Break statements are made to break out of a loop and there is no loop here. I replaced the function with this code def tree(branchLength, angle): """Make a tree"""
i'm a student studying in 11th,and this tree kept my attention for last 1-2 years but I wasn't able to find the code for this finally u helped me and also explained the code to me. Thank you sir❤
I toggled with the '3' and '4' of the equation 3*i/4. From what I observed, the '3' affects how the density and number of the branches that are created. While the '4' affects how far each branch extends.
If we are just creating a loop then we can just create while or more ideal a For loop to complete this Mechanism . Why are we creating def function for completing the project as a For loop would be more efficient in this situation .
Thank you for taking the time to explain the code step by step. After all, there is no use in using code when you don't understand how it works. I also appreciate your taking to explain each written line of code and its elements.
Thank you - this is very helpful to model!
Thank you! You are the youtuber who tutor this most explicitly.
Thank you, great tutorial!
Bro how do I make my tree a little bold ..... Thank you for the tutorial
i am missing something. how does "i" increase going backwards? ending with 100?
Hello! friend i am very grateful for your work and would like you to give me more ways to improve my knowledge in Python with Manuals and Projects or even another very intensive content
bro I've tried working on three branches tree.. How can I message you the code to take a look on it?
Mail me at iknowpython14@gmail.com
tree code for 3 branch:
import turtle
hr = turtle.Turtle()
hr.left(90)
hr.speed(150)
def tree(i):
if(i>=20):
hr.forward(i)
hr.left(30)
tree(3*i/4)
hr.right(30)
tree(3*i/4)
hr.right(30)
tree(3*i/4)
hr.left(30)
hr.backward(i)
tree(100)
turtle.done()
Keep up the great work, you explain things very well.
#bhai #awesome #zehar #tabhai #1 number
which program do you use for python
It's Sublime Text
Bro Complete Python Course Pettandi broo plzzz
I don't understand 6 line how to type def tree(I):
bro i have solve the problem making the tree with three branches, i have already send the code to your mail
bro please make a vedio on paint application in python
why i am getting an error "'break' outside loop"
So keep the break inside mannn male sure you are indenting the break properly 😊
I'm getting the same thing, have you figured it out? I'm absolutely sure my code ws indented correctly. Break statements are made to break out of a loop and there is no loop here. I replaced the function with this code
def tree(branchLength, angle):
"""Make a tree"""
while branchLength > 10:
turt.forward(branchLength)
turt.left(angle)
tree(branchLength * 0.75, angle)
turt.right(angle * 2)
tree(branchLength * 0.75, angle)
turt.left(angle)
turt.back(branchLength)
return
Cool
apki vedio nahi aa rahi hai brother
Turtle.speed() goes from 0-10 setting it higher makes no difference.
Stop giving advise bro
Stop commenting useless bro
@@Iknowpython😅😅😅