From 82f54c70633ef9b1e9dc43fefb082e17c50aa0fd Mon Sep 17 00:00:00 2001 From: Bradley Woods <99369420+bradley-woods@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:42:52 +0100 Subject: [PATCH] Update 03_operators.md Removed part of question 9 to find Euclidean distance as this requires the use of sqrt() from the math module which isn't discussed until later in the course --- 03_Day_Operators/03_operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03_Day_Operators/03_operators.md b/03_Day_Operators/03_operators.md index 0fcfeb99..cde5b74e 100644 --- a/03_Day_Operators/03_operators.md +++ b/03_Day_Operators/03_operators.md @@ -275,7 +275,7 @@ The perimeter of the triangle is 12 6. Get length and width of a rectangle using prompt. Calculate its area (area = length x width) and perimeter (perimeter = 2 x (length + width)) 7. Get radius of a circle using prompt. Calculate the area (area = pi x r x r) and circumference (c = 2 x pi x r) where pi = 3.14. 8. Calculate the slope, x-intercept and y-intercept of y = 2x -2 -9. Slope is (m = y2-y1/x2-x1). Find the slope and [Euclidean distance](https://en.wikipedia.org/wiki/Euclidean_distance#:~:text=In%20mathematics%2C%20the%20Euclidean%20distance,being%20called%20the%20Pythagorean%20distance.) between point (2, 2) and point (6,10) +9. Slope is (m = y2-y1/x2-x1). Find the slope between point (2, 2) and point (6,10) 10. Compare the slopes in tasks 8 and 9. 11. Calculate the value of y (y = x^2 + 6x + 9). Try to use different x values and figure out at what x value y is going to be 0. 12. Find the length of 'python' and 'dragon' and make a falsy comparison statement.