source stringclasses 2 values | version stringclasses 2 values | module stringclasses 53 values | function stringclasses 318 values | input stringlengths 3 496 | expected stringlengths 0 876 | signature stringclasses 41 values |
|---|---|---|---|---|---|---|
cpython | 3.10 | turtle | TNavigator.setheading | >>> turtle.heading() | 90 | null |
cpython | 3.10 | turtle | TNavigator.circle | >>> turtle.circle(50) | null | |
cpython | 3.10 | turtle | TNavigator.circle | >>> turtle.circle(120, 180) # semicircle | null | |
cpython | 3.10 | turtle | TPen.resizemode | >>> turtle.resizemode("noresize") | null | |
cpython | 3.10 | turtle | TPen.resizemode | >>> turtle.resizemode() | 'noresize' | null |
cpython | 3.10 | turtle | TPen.pensize | >>> turtle.pensize() | 1 | null |
cpython | 3.10 | turtle | TPen.pensize | >>> turtle.pensize(10) # from here on lines of width 10 are drawn | null | |
cpython | 3.10 | turtle | TPen.penup | >>> turtle.penup() | null | |
cpython | 3.10 | turtle | TPen.pendown | >>> turtle.pendown() | null | |
cpython | 3.10 | turtle | TPen.isdown | >>> turtle.penup() | null | |
cpython | 3.10 | turtle | TPen.isdown | >>> turtle.isdown() | False | null |
cpython | 3.10 | turtle | TPen.isdown | >>> turtle.pendown() | null | |
cpython | 3.10 | turtle | TPen.isdown | >>> turtle.isdown() | True | null |
cpython | 3.10 | turtle | TPen.speed | >>> turtle.speed(3) | null | |
cpython | 3.10 | turtle | TPen.color | >>> turtle.color('red', 'green') | null | |
cpython | 3.10 | turtle | TPen.color | >>> turtle.color() | ('red', 'green') | null |
cpython | 3.10 | turtle | TPen.color | >>> colormode(255) | null | |
cpython | 3.10 | turtle | TPen.color | >>> color((40, 80, 120), (160, 200, 240)) | null | |
cpython | 3.10 | turtle | TPen.color | >>> color() | ('#285078', '#a0c8f0') | null |
cpython | 3.10 | turtle | TPen.pencolor | >>> turtle.pencolor('brown') | null | |
cpython | 3.10 | turtle | TPen.pencolor | >>> tup = (0.2, 0.8, 0.55) | null | |
cpython | 3.10 | turtle | TPen.pencolor | >>> turtle.pencolor(tup) | null | |
cpython | 3.10 | turtle | TPen.pencolor | >>> turtle.pencolor() | '#33cc8c' | null |
cpython | 3.10 | turtle | TPen.fillcolor | >>> turtle.fillcolor('violet') | null | |
cpython | 3.10 | turtle | TPen.fillcolor | >>> col = turtle.pencolor() | null | |
cpython | 3.10 | turtle | TPen.fillcolor | >>> turtle.fillcolor(col) | null | |
cpython | 3.10 | turtle | TPen.fillcolor | >>> turtle.fillcolor(0, .5, 0) | null | |
cpython | 3.10 | turtle | TPen.showturtle | >>> turtle.hideturtle() | null | |
cpython | 3.10 | turtle | TPen.showturtle | >>> turtle.showturtle() | null | |
cpython | 3.10 | turtle | TPen.hideturtle | >>> turtle.hideturtle() | null | |
cpython | 3.10 | turtle | TPen.isvisible | >>> turtle.hideturtle() | null | |
cpython | 3.10 | turtle | TPen.isvisible | >>> print turtle.isvisible(): | False | null |
cpython | 3.10 | turtle | TPen.pen | >>> turtle.pen(fillcolor="black", pencolor="red", pensize=10) | null | |
cpython | 3.10 | turtle | TPen.pen | >>> turtle.pen() | {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
'pencolor': 'red', 'pendown': True, 'fillcolor': 'black',
'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0} | null |
cpython | 3.10 | turtle | TPen.pen | >>> penstate=turtle.pen() | null | |
cpython | 3.10 | turtle | TPen.pen | >>> turtle.color("yellow","") | null | |
cpython | 3.10 | turtle | TPen.pen | >>> turtle.penup() | null | |
cpython | 3.10 | turtle | TPen.pen | >>> turtle.pen() | {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
'pencolor': 'yellow', 'pendown': False, 'fillcolor': '',
'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0} | null |
cpython | 3.10 | turtle | TPen.pen | >>> p.pen(penstate, fillcolor="green") | null | |
cpython | 3.10 | turtle | TPen.pen | >>> p.pen() | {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
'pencolor': 'red', 'pendown': True, 'fillcolor': 'green',
'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0} | null |
cpython | 3.10 | turtle | RawTurtle.reset | >>> turtle.position() | (0.00,-22.00) | null |
cpython | 3.10 | turtle | RawTurtle.reset | >>> turtle.heading() | 100.0 | null |
cpython | 3.10 | turtle | RawTurtle.reset | >>> turtle.reset() | null | |
cpython | 3.10 | turtle | RawTurtle.reset | >>> turtle.position() | (0.00,0.00) | null |
cpython | 3.10 | turtle | RawTurtle.reset | >>> turtle.heading() | 0.0 | null |
cpython | 3.10 | turtle | RawTurtle.setundobuffer | >>> turtle.setundobuffer(42) | null | |
cpython | 3.10 | turtle | RawTurtle.undobufferentries | >>> while undobufferentries():
... undo() | null | |
cpython | 3.10 | turtle | RawTurtle.clear | >>> turtle.clear() | null | |
cpython | 3.10 | turtle | RawTurtle._tracer | >>> turtle.tracer(8, 25) | null | |
cpython | 3.10 | turtle | RawTurtle._tracer | >>> dist = 2 | null | |
cpython | 3.10 | turtle | RawTurtle._tracer | >>> for i in range(200):
... turtle.fd(dist)
... turtle.rt(90)
... dist += 2 | null | |
cpython | 3.10 | turtle | RawTurtle.shape | >>> turtle.shape() | 'arrow' | null |
cpython | 3.10 | turtle | RawTurtle.shape | >>> turtle.shape("turtle") | null | |
cpython | 3.10 | turtle | RawTurtle.shape | >>> turtle.shape() | 'turtle' | null |
cpython | 3.10 | turtle | RawTurtle.shapesize | >>> turtle.resizemode("user") | null | |
cpython | 3.10 | turtle | RawTurtle.shapesize | >>> turtle.shapesize(5, 5, 12) | null | |
cpython | 3.10 | turtle | RawTurtle.shapesize | >>> turtle.shapesize(outline=8) | null | |
cpython | 3.10 | turtle | RawTurtle.shearfactor | >>> turtle.shape("circle") | null | |
cpython | 3.10 | turtle | RawTurtle.shearfactor | >>> turtle.shapesize(5,2) | null | |
cpython | 3.10 | turtle | RawTurtle.shearfactor | >>> turtle.shearfactor(0.5) | null | |
cpython | 3.10 | turtle | RawTurtle.shearfactor | >>> turtle.shearfactor() | null | |
cpython | 3.10 | turtle | RawTurtle.shearfactor | >>> 0.5 | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> turtle.shape("circle") | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> turtle.shapesize(5,2) | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> turtle.settiltangle(45) | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> stamp() | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> turtle.fd(50) | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> turtle.settiltangle(-45) | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> stamp() | null | |
cpython | 3.10 | turtle | RawTurtle.settiltangle | >>> turtle.fd(50) | null | |
cpython | 3.10 | turtle | RawTurtle.tiltangle | >>> turtle.shape("circle") | null | |
cpython | 3.10 | turtle | RawTurtle.tiltangle | >>> turtle.shapesize(5,2) | null | |
cpython | 3.10 | turtle | RawTurtle.tiltangle | >>> turtle.tilt(45) | null | |
cpython | 3.10 | turtle | RawTurtle.tiltangle | >>> turtle.tiltangle() | null | |
cpython | 3.10 | turtle | RawTurtle.tilt | >>> turtle.shape("circle") | null | |
cpython | 3.10 | turtle | RawTurtle.tilt | >>> turtle.shapesize(5,2) | null | |
cpython | 3.10 | turtle | RawTurtle.tilt | >>> turtle.tilt(30) | null | |
cpython | 3.10 | turtle | RawTurtle.tilt | >>> turtle.fd(50) | null | |
cpython | 3.10 | turtle | RawTurtle.tilt | >>> turtle.tilt(30) | null | |
cpython | 3.10 | turtle | RawTurtle.tilt | >>> turtle.fd(50) | null | |
cpython | 3.10 | turtle | RawTurtle.shapetransform | >>> turtle.shape("square") | null | |
cpython | 3.10 | turtle | RawTurtle.shapetransform | >>> turtle.shapesize(4,2) | null | |
cpython | 3.10 | turtle | RawTurtle.shapetransform | >>> turtle.shearfactor(-0.5) | null | |
cpython | 3.10 | turtle | RawTurtle.shapetransform | >>> turtle.shapetransform() | (4.0, -1.0, -0.0, 2.0) | null |
cpython | 3.10 | turtle | RawTurtle.get_shapepoly | >>> turtle.shape("square") | null | |
cpython | 3.10 | turtle | RawTurtle.get_shapepoly | >>> turtle.shapetransform(4, -1, 0, 2) | null | |
cpython | 3.10 | turtle | RawTurtle.get_shapepoly | >>> turtle.get_shapepoly() | ((50, -20), (30, 20), (-50, 20), (-30, -20)) | null |
cpython | 3.10 | turtle | RawTurtle.stamp | >>> turtle.color("blue") | null | |
cpython | 3.10 | turtle | RawTurtle.stamp | >>> turtle.stamp() | 13 | null |
cpython | 3.10 | turtle | RawTurtle.stamp | >>> turtle.fd(50) | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamp | >>> turtle.color("blue") | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamp | >>> astamp = turtle.stamp() | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamp | >>> turtle.fd(50) | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamp | >>> turtle.clearstamp(astamp) | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamps | >>> for i in range(8):
... turtle.stamp(); turtle.fd(30)
... | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamps | >>> turtle.clearstamps(2) | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamps | >>> turtle.clearstamps(-2) | null | |
cpython | 3.10 | turtle | RawTurtle.clearstamps | >>> turtle.clearstamps() | null | |
cpython | 3.10 | turtle | RawTurtle.filling | >>> turtle.begin_fill() | null | |
cpython | 3.10 | turtle | RawTurtle.filling | >>> if turtle.filling():
... turtle.pensize(5)
... else:
... turtle.pensize(3) | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.