Question: using python Question One. 25 points. Use the online documentation for the math library to identify the math library's function that returns the Euclidean distance

using python using python Question One. 25 points. Use the online documentation for the

Question One. 25 points. Use the online documentation for the math library to identify the math library's function that returns the Euclidean distance between two points where each point is given as a sequence of coordinates such as (2, 3, 4). Replace the quoted question marks in the program below with a call to this function. If done correctly, the output of the program will be similar to this: Distance: 29.563490998188968 import math point_1 = (2, 3, 4) point_2 = (-7, 0, 32) print("Distance: ""?????") Question Two. 35 points. It's election season! Suppose we know that Montana has 3 electoral votes, Idaho has 4 electoral votes and Wyoming has 3 electoral votes. For simplicity, we will assume that all other states have 0 electoral votes Supply the missing function, using a selection statement that is as concise as possible, such that the output of the program will be: Electoral votes for Montana 3 Electoral votes for Idaho Electoral votes for California Electoral votes for Wyoming - 3 --0 for state in ("Montana", "Idaho", "California "Wyoming": print("Electoral votes for", state, ---", electoral votos (state)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!