再びお世話になります。
Pythonのturtleを利用して使う人に色と形を聞いてそれを描くようにコードを書きたいのですがどうしたらいいのでしょうか。。?何度も英語でも日本語でも調べたのですがうまくいきませんでした。
分かる方ご教授お願いいたします。
Task
*Ask user for the shape to draw (triangle, square, circle,…) and for the color to use.
*Show the choice of possible shapes and colors, check the user’s input for the correctness of their names.
*Draw the shape in selected color using turtle graphics.
example
select a shape(triangle, circle, square):triangle
select a color(red, blue, green):red
回答2件
あなたの回答
tips
プレビュー