CloudCoder Python feladatgyujtemeny/teki
A MathWikiből
import math def teki(k, lepeshossz, fi): x, y = 0, 0 szog = 0 for i in range(k): x = x + lepeshossz*math.cos(szog * math.pi / 180) y = y + lepeshossz*math.sin(szog * math.pi / 180) szog += fi return (round(x), round(y))