l = [['Apple','Google','Microsoft'],\ ['Java','Python','Ruby','PHP'],\ ['Adam','Bart','Lisa']\ ] names= ['Michael','Bob','Tracy'] #list print(names[1]) scores = [95,75,85] #list d = {'Michael':95,'Bob':75,'Tracy':85} #dict print(d['Bob'])
import turtle turtle.speed(15) colors =['red','orange','blue','green','pink','yellow','white','red'] for i in range(250): turtle.pencolor(colors[i%8]) turtle.forward(i) turtle.left(100) turtle.done()