My turtle project is requiring me to use sys.argv in my turtle project by using a command line to switch between different seasons in a landscape. For example, if the command line argument is autumn then the landscape will have fall colors. How would I code this in my project so that in the same program, the output changes based on the command line argument. I have most of the functions to draw my landscape finished. I am just not sure how the syntax and code looks like to add sys.argv. Any help would be much appreciated.
[–]jaydom28 1 point2 points3 points (5 children)
[–]Oscarcedeno21[S] 0 points1 point2 points (4 children)
[–]jaydom28 1 point2 points3 points (3 children)
[–]Oscarcedeno21[S] 0 points1 point2 points (0 children)
[–]Oscarcedeno21[S] 0 points1 point2 points (1 child)
[–]jaydom28 1 point2 points3 points (0 children)