Example Program
Quick Docs
# Graphing an equation
for x in range(100):
y = 2 * x + 5
setposition(x, y)
# Calculate the sine
y = math.sin(x)
# Calculate the cosine
y = math.cos(x)
Font Size
14
Parentheses autocomplete
Wrap lines
Editor
Theme
Code with blocks by default
Console Font Size
12
Console Theme
Show File Tab Bar
4 Wave Graph
main.py
1
2
import math
"""
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output
Docs
Example
More
History
Video
Download
About
This student is viewing this assignment in English. View this page in English?
1 point
Tracy doesn’t just make linear graphs! This program graphs a sinusoidal wave.
Try changing the equation, and see how the graph changes!
Reset Code
Upload an image
Upload from your computer
Or paste a link here
Slides and Notes
About
Python (turtle)
Skulpt 1.0.0, Python 2.x