paul
mein code
- mycode1.py
# -*- coding: utf-8 -*- import random as r import turtle as t t.colormode(255) p = r.randint(300,400) for x in range(p): d = r.randint(0,255) e = r.randint(0,255) f = r.randint(0,255) s = r.randint(0,40) c = r.randint(0,35) t.pensize (c) t.left(r.randint(-400,400)) t.fd(r.randint(-1000,1000)) t.pencolor(e,d,f) t.bgcolor(e,d,f) t.write("Home = ", True, align="center") t.write((0,56), True) if t.position()[0]<-400 or t.position()[0]>400 or t.position()[1]<-400 or t.position()[1]>400: t.penup() t.goto(0,0) t.pendown()
- mycode2.py
# -*- coding: utf-8 -*- import random print "FRISCH KILL GENERATOR" frisch = 0 for x in range(10): tod = random.randint(1,10) #print tod frisch = frisch + tod #print frisch print "Sie haben frisch %i mal getötet"%(frisch)
- mycode3.py
# -*- coding: utf-8 -*- import random import turtle as t t.colormode(255) t.pencolor(50,150,0) t.pensize(6) for x in range(100): t.left(50) t.fd(x) t.circle(100 * x)
Hah, selbst gemalt!




