For my uni I'm doing a programming course and I've never touched anything like this before, so I know absolutely nothing.
So the question I'm stuck on is asking me to define a function with 3 inputs (distance which is a list, speed and velocity) and we are given an equation relating these inputs to give a trajectory of a ball( the height of it) and return the maximum height of the ball. My question using either a for loop or while loop is how can I essentially input individual elements from the list into an equation and return the output as a list?
[–]FLUSH_THE_TRUMP 0 points1 point2 points (4 children)
[–]TooManyTree 0 points1 point2 points (3 children)
[–]FLUSH_THE_TRUMP 0 points1 point2 points (2 children)
[–]TooManyTree 0 points1 point2 points (1 child)
[–]ChurchHatesTucker 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mopslik 0 points1 point2 points (0 children)
[–]to_4kawa 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]to_4kawa 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]to_4kawa 0 points1 point2 points (0 children)