Message from Python discussions

November 2018

— Do you tell me that?

— 

I mean..... What gives you more pleasure? Asking in group or just solving it yourself with a little effort?

— Looks like it.

— From swampy.TurtleWorld import *
from math import pi


def polygon(t, length, n):
degrees = 360.0/n;
for i in range(n/2):
fd(t, length)
rt(t, degrees)

def circle(t, r):
lt(t)
circumference = pi*r
n = int(round(circumference))
polygon(t, 1, n)
lt(t)

world = TurtleWorld()
bob = Turtle()
bob.delay = 0.001
while True:
a = int(raw_input("Enter the radius"))
circle(bob,a)

Message permanent page

— I want to draw half circles multiple times

— ```

— 

from swampy.TurtleWorld import *
from math import pi


def polygon(t, length, n):
degrees = 360.0/n;
for i in range(n/2):
fd(t, length)
rt(t, degrees)

def circle(t, r):
lt(t)
circumference = pi*r
n = int(round(circumference))
polygon(t, 1, n)
lt(t)

world = TurtleWorld()
bob = Turtle()
bob.delay = 0.001
while True:
a = int(raw_input("Enter the radius"))
circle(bob,a)

Message permanent page

— Https://hastebin.com/omozuqurad.py

— I want the turtle to draw half circles multiple times with the given radius. The code works but if you make it draw few times it starts to go upwards.

Message permanent page

— I want to keep him straight

— Can we fatch data from link? Example :- Lets take video from fb or youtube and i need to download it with different quality. So my question is python can fatch detail and show us different video quality ?

Message permanent page

— Yes.