Jump to content

Talk:Learning Python 3 with the Linkbot/Advanced Functions Example

Page contents not supported in other languages.
Add topic
From Wikibooks, open books for an open world

Idea for inclusion of Linkbot

[edit source]

Write a function that moves the linkbot forward and turns right 90 degrees. Call it four times to have the linkbot draw a square!

Idea for inclusion of Linkbot

[edit source]

Write a program that plays a tone with frequency x, then changes x= x-x*2**(1/12) [which should move a chromatic note lower, I think]. Call it 12 times to play a chromatic scale? Combine with input to change what note/octave it starts on?

I like this idea because it kind of fits w/ the whole theme of recursive functions, which is the main topic of this chapter. -Davidko barobo (discusscontribs) 22:31, 15 September 2014 (UTC)Reply