Python Forum
Cant define turtle color with function argument
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant define turtle color with function argument
#2
Use fred.color(colorname). Your color names are already strings, so you don't need the str(colorname).

Also, 'c' is not a color and my program didn't draw a flowere when honeydew was used. Don't know why.
Reply


Messages In This Thread
RE: Cant define turtle color with function argument - by deanhystad - Apr-22-2020, 01:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  mutable argument in function definition akbarza 1 483 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  Turtle Star Fill Color Yellow-White Interchanging Color Effect codelab 9 1,005 Oct-25-2023, 09:09 AM
Last Post: codelab
Information How to take url in telegram bot user input and put it as an argument in a function? askfriends 0 1,094 Dec-25-2022, 03:00 PM
Last Post: askfriends
  i want to use type= as a function/method keyword argument Skaperen 9 1,862 Nov-06-2022, 04:28 AM
Last Post: Skaperen
  Regex - Pass Flags as a function argument? muzikman 6 3,597 Sep-06-2021, 03:43 PM
Last Post: muzikman
  How to use a tuple as an argument of a function zarox 5 3,612 Nov-14-2020, 08:02 PM
Last Post: buran
  Struggling for the past hour to define function and call it back godlyredwall 2 2,225 Oct-29-2020, 02:45 PM
Last Post: deanhystad
  calling a function and argument in an input phillup7 3 2,617 Oct-25-2020, 02:12 PM
Last Post: jefsummers
  Passing argument from top-level function to embedded function JaneTan 2 2,263 Oct-15-2020, 03:50 PM
Last Post: deanhystad
  Help with define a def function Omer_ 3 2,167 Sep-20-2020, 06:59 PM
Last Post: Omer_

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020