source stringclasses 1 value | version stringclasses 1 value | module stringclasses 43 values | function stringclasses 307 values | input stringlengths 3 496 | expected stringlengths 0 40.5k | signature stringclasses 0 values |
|---|---|---|---|---|---|---|
cpython | cfcd524 | turtle | TNavigator.radians | >>> turtle.heading() | 1.5707963267948966 | null |
cpython | cfcd524 | turtle | TNavigator.forward | >>> turtle.position() | (0.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.forward | >>> turtle.forward(25) | null | |
cpython | cfcd524 | turtle | TNavigator.forward | >>> turtle.position() | (25.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.forward | >>> turtle.forward(-75) | null | |
cpython | cfcd524 | turtle | TNavigator.forward | >>> turtle.position() | (-50.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.back | >>> turtle.position() | (0.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.back | >>> turtle.backward(30) | null | |
cpython | cfcd524 | turtle | TNavigator.back | >>> turtle.position() | (-30.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.right | >>> turtle.heading() | 22.0 | null |
cpython | cfcd524 | turtle | TNavigator.right | >>> turtle.right(45) | null | |
cpython | cfcd524 | turtle | TNavigator.right | >>> turtle.heading() | 337.0 | null |
cpython | cfcd524 | turtle | TNavigator.left | >>> turtle.heading() | 22.0 | null |
cpython | cfcd524 | turtle | TNavigator.left | >>> turtle.left(45) | null | |
cpython | cfcd524 | turtle | TNavigator.left | >>> turtle.heading() | 67.0 | null |
cpython | cfcd524 | turtle | TNavigator.pos | >>> turtle.pos() | (0.00, 240.00) | null |
cpython | cfcd524 | turtle | TNavigator.xcor | >>> reset() | null | |
cpython | cfcd524 | turtle | TNavigator.xcor | >>> turtle.left(60) | null | |
cpython | cfcd524 | turtle | TNavigator.xcor | >>> turtle.forward(100) | null | |
cpython | cfcd524 | turtle | TNavigator.xcor | >>> print(turtle.xcor()) | 50.0 | null |
cpython | cfcd524 | turtle | TNavigator.ycor | >>> reset() | null | |
cpython | cfcd524 | turtle | TNavigator.ycor | >>> turtle.left(60) | null | |
cpython | cfcd524 | turtle | TNavigator.ycor | >>> turtle.forward(100) | null | |
cpython | cfcd524 | turtle | TNavigator.ycor | >>> print(turtle.ycor()) | 86.6025403784 | null |
cpython | cfcd524 | turtle | TNavigator.goto | >>> tp = turtle.pos() | null | |
cpython | cfcd524 | turtle | TNavigator.goto | >>> tp | (0.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.goto | >>> turtle.setpos(60,30) | null | |
cpython | cfcd524 | turtle | TNavigator.goto | >>> turtle.pos() | (60.00,30.00) | null |
cpython | cfcd524 | turtle | TNavigator.goto | >>> turtle.setpos((20,80)) | null | |
cpython | cfcd524 | turtle | TNavigator.goto | >>> turtle.pos() | (20.00,80.00) | null |
cpython | cfcd524 | turtle | TNavigator.goto | >>> turtle.setpos(tp) | null | |
cpython | cfcd524 | turtle | TNavigator.goto | >>> turtle.pos() | (0.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.home | >>> turtle.home() | null | |
cpython | cfcd524 | turtle | TNavigator.setx | >>> turtle.position() | (0.00, 240.00) | null |
cpython | cfcd524 | turtle | TNavigator.setx | >>> turtle.setx(10) | null | |
cpython | cfcd524 | turtle | TNavigator.setx | >>> turtle.position() | (10.00, 240.00) | null |
cpython | cfcd524 | turtle | TNavigator.sety | >>> turtle.position() | (0.00, 40.00) | null |
cpython | cfcd524 | turtle | TNavigator.sety | >>> turtle.sety(-10) | null | |
cpython | cfcd524 | turtle | TNavigator.sety | >>> turtle.position() | (0.00, -10.00) | null |
cpython | cfcd524 | turtle | TNavigator.distance | >>> turtle.pos() | (0.00,0.00) | null |
cpython | cfcd524 | turtle | TNavigator.distance | >>> turtle.distance(30,40) | 50.0 | null |
cpython | cfcd524 | turtle | TNavigator.distance | >>> pen = Turtle() | null | |
cpython | cfcd524 | turtle | TNavigator.distance | >>> pen.forward(77) | null | |
cpython | cfcd524 | turtle | TNavigator.distance | >>> turtle.distance(pen) | 77.0 | null |
cpython | cfcd524 | turtle | TNavigator.towards | >>> turtle.pos() | (10.00, 10.00) | null |
cpython | cfcd524 | turtle | TNavigator.towards | >>> turtle.towards(0,0) | 225.0 | null |
cpython | cfcd524 | turtle | TNavigator.heading | >>> turtle.left(67) | null | |
cpython | cfcd524 | turtle | TNavigator.heading | >>> turtle.heading() | 67.0 | null |
cpython | cfcd524 | turtle | TNavigator.setheading | >>> turtle.setheading(90) | null | |
cpython | cfcd524 | turtle | TNavigator.setheading | >>> turtle.heading() | 90 | null |
cpython | cfcd524 | turtle | TNavigator.circle | >>> turtle.circle(50) | null | |
cpython | cfcd524 | turtle | TNavigator.circle | >>> turtle.circle(120, 180) # semicircle | null | |
cpython | cfcd524 | turtle | TPen.resizemode | >>> turtle.resizemode("noresize") | null | |
cpython | cfcd524 | turtle | TPen.resizemode | >>> turtle.resizemode() | 'noresize' | null |
cpython | cfcd524 | turtle | TPen.pensize | >>> turtle.pensize() | 1 | null |
cpython | cfcd524 | turtle | TPen.pensize | >>> turtle.pensize(10) # from here on lines of width 10 are drawn | null | |
cpython | cfcd524 | turtle | TPen.penup | >>> turtle.penup() | null | |
cpython | cfcd524 | turtle | TPen.pendown | >>> turtle.pendown() | null | |
cpython | cfcd524 | turtle | TPen.isdown | >>> turtle.penup() | null | |
cpython | cfcd524 | turtle | TPen.isdown | >>> turtle.isdown() | False | null |
cpython | cfcd524 | turtle | TPen.isdown | >>> turtle.pendown() | null | |
cpython | cfcd524 | turtle | TPen.isdown | >>> turtle.isdown() | True | null |
cpython | cfcd524 | turtle | TPen.speed | >>> turtle.speed(3) | null | |
cpython | cfcd524 | turtle | TPen.color | >>> turtle.color('red', 'green') | null | |
cpython | cfcd524 | turtle | TPen.color | >>> turtle.color() | ('red', 'green') | null |
cpython | cfcd524 | turtle | TPen.color | >>> colormode(255) | null | |
cpython | cfcd524 | turtle | TPen.color | >>> color(('#285078', '#a0c8f0')) | null | |
cpython | cfcd524 | turtle | TPen.color | >>> color() | ((40.0, 80.0, 120.0), (160.0, 200.0, 240.0)) | null |
cpython | cfcd524 | turtle | TPen.pencolor | >>> turtle.pencolor('brown') | null | |
cpython | cfcd524 | turtle | TPen.pencolor | >>> turtle.pencolor() | 'brown' | null |
cpython | cfcd524 | turtle | TPen.pencolor | >>> colormode(255) | null | |
cpython | cfcd524 | turtle | TPen.pencolor | >>> turtle.pencolor('#32c18f') | null | |
cpython | cfcd524 | turtle | TPen.pencolor | >>> turtle.pencolor() | (50.0, 193.0, 143.0) | null |
cpython | cfcd524 | turtle | TPen.fillcolor | >>> turtle.fillcolor('violet') | null | |
cpython | cfcd524 | turtle | TPen.fillcolor | >>> turtle.fillcolor() | 'violet' | null |
cpython | cfcd524 | turtle | TPen.fillcolor | >>> colormode(255) | null | |
cpython | cfcd524 | turtle | TPen.fillcolor | >>> turtle.fillcolor('#ffffff') | null | |
cpython | cfcd524 | turtle | TPen.fillcolor | >>> turtle.fillcolor() | (255.0, 255.0, 255.0) | null |
cpython | cfcd524 | turtle | TPen.showturtle | >>> turtle.hideturtle() | null | |
cpython | cfcd524 | turtle | TPen.showturtle | >>> turtle.showturtle() | null | |
cpython | cfcd524 | turtle | TPen.hideturtle | >>> turtle.hideturtle() | null | |
cpython | cfcd524 | turtle | TPen.isvisible | >>> turtle.hideturtle() | null | |
cpython | cfcd524 | turtle | TPen.isvisible | >>> print(turtle.isvisible()) | False | null |
cpython | cfcd524 | turtle | TPen.pen | >>> turtle.pen(fillcolor="black", pencolor="red", pensize=10) | null | |
cpython | cfcd524 | 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 | cfcd524 | turtle | TPen.pen | >>> penstate=turtle.pen() | null | |
cpython | cfcd524 | turtle | TPen.pen | >>> turtle.color("yellow","") | null | |
cpython | cfcd524 | turtle | TPen.pen | >>> turtle.penup() | null | |
cpython | cfcd524 | 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 | cfcd524 | turtle | TPen.pen | >>> p.pen(penstate, fillcolor="green") | null | |
cpython | cfcd524 | 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 | cfcd524 | turtle | RawTurtle.reset | >>> turtle.position() | (0.00,-22.00) | null |
cpython | cfcd524 | turtle | RawTurtle.reset | >>> turtle.heading() | 100.0 | null |
cpython | cfcd524 | turtle | RawTurtle.reset | >>> turtle.reset() | null | |
cpython | cfcd524 | turtle | RawTurtle.reset | >>> turtle.position() | (0.00,0.00) | null |
cpython | cfcd524 | turtle | RawTurtle.reset | >>> turtle.heading() | 0.0 | null |
cpython | cfcd524 | turtle | RawTurtle.setundobuffer | >>> turtle.setundobuffer(42) | null | |
cpython | cfcd524 | turtle | RawTurtle.undobufferentries | >>> while undobufferentries():
... undo() | null | |
cpython | cfcd524 | turtle | RawTurtle.clear | >>> turtle.clear() | null | |
cpython | cfcd524 | turtle | RawTurtle._tracer | >>> turtle.tracer(8, 25) | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.