Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to make a square multicolor square spiral python

import turtle
t= turtle.Pen()
t.speed(0)
turtle.bgcolor('black')
colours= ["blue","green","brown","yellow"]
for x in range(100):
    t.forward(x)
    t.left(90)
    t.pencolor(colours[x % 4])
Comment

PREVIOUS NEXT
Code Example
Python :: operations in python 
Python :: python invalid syntax for no reason 
Python :: how to accept invalidfileexception in python 
Python :: how to call a specific item from a list python 
Python :: test register user mismatched passwords 
Python :: who is agada nathan 
Python :: pytorch rolling window 
Python :: foreach loop in python with index 
Python :: multiply two list in python using lambda 
Python :: check if set is a subset of another python 
Python :: djago get settings 
Python :: Local to ISO 8601 without microsecond: 
Python :: iterate rows 
Python :: np v stack 
Python :: can we put the object as value in a dictionary in python* 
Python :: .format() multiple placeholders 
Python :: Python find permutations of operators between each digit in a given string of digits will result in a particular answer 
Python :: python sorted vs sort 
Python :: FizzBuzz in Python Using itertools 
Python :: Palindrome in Python Using reverse function 
Python :: Find Factors of a Number Using for Loop 
Python :: Math Module atan() Function in python 
Python :: joining datasets by id python 
Python :: python count files fast 
Python :: to iterate across information on same nest 
Python :: attach short list to pandas dataframe with filler 
Python :: Python NumPy ravel function example array.ravel is equivalent to reshape(-1, order=order) 
Python :: data framing with Pandas 
Python :: django on-delete options 
Python :: (ax=self.canv.axes ,style="ro--") 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =