From the course: Python Practice: Real-World Coding Challenges
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Plotting the course - Python Tutorial
From the course: Python Practice: Real-World Coding Challenges
Challenge: Plotting the course
(upbeat music) - The plot thickens as we chart new territory. What, is she having a graph? Yes, yes I am. We are going to turn our terminal scribes into function plotters. The exact implementation details are up to you, but you should define some function outside the terminal scribe class entirely and then pass that function into your scribe instance and have it plot the function. The function should take in some number on the x-axis and return some number on the y-axis so that your scribe knows where to move. For instance, if my function is sine x, I should see a sine wave plotted across the screen, assuming you know I stretch it vertically enough, because sine x is always between negative one and one so you might want to make some extra considerations there. For fun, you might consider adding a labeled axis or a title to your canvas or maybe your function returns multiple values so your scribe has to plot multiple…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.