### SAMS Senior Non-CS-Track Week4-1 Exercise
### Due Date: Tuesday 07/23 2:30pm
### Name:
### andrewID:
from tkinter import *
### Exercise 1 ###
# Write the function trianglePerimeter(x1, y1, x2, y2, x3, y3) which takes
# three coordinates – (x1, y1), (x2, y2), and (x3, y3) – and calculates the
# perimeter of the triangle made by connecting those three points.
# To make solving this problem easier, you should also write the function
# distance(x1, y1, x2, y2) which takes two coordinates –
# (x1, y1) and (x2, y2) – and calculates the distance between them. You should
# then call distance() from trianglePerimeter().
# Finally, print out the result of calling trianglePerimeter on the points
# (0, 50), (20, 30), and (70, 80) to find the perimeter of that triangle!
### Exercise 2 ###
# At the top level, set up two variables, x and y, that start off holding the
# values 3 and 5. Then write a line of code that prints out True if x to the y
# is greater than y to the x, or False if not. Your code should still work if
# the numbers inside x and y are changed.
### Exercise 3 ###
# Write a function, cloneChecker(name, age), that takes a string
# (a person's name) and a number (their age). This function returns True if the
# given name is the same as yours and the age is within one year of yours, or
# False otherwise.
# Then call the function and print out its output twice- first on an input that
# makes it return True, then on an output that makes it return False.
### Exercise 4 ###
# At the top level, write a few lines of code that asks the user what their
# favorite [song/movie/book/tv show] is (just pick one, though!).
# If the user's favorite is the same as yours, print out a special message for
# them. Then, whether or not they had the same favorite, print out a general
# message about that type of media.