Teaching teens about texting and driving considering 26 percent of all motor vehicle crashes are related to the use of cell phones. Each day, 11 teens die in crashes caused by texting and driving. 2.35 million people in the US are injured or disabled by car crashes every year. More than 330,000 of these crashes that cause severe injury are caused by texting and driving.
Hope this helped good luck!!!
Answer:
def printRange(start, stop, steps = 1):
list1 = []
if steps > start or stop:
print("Steps is larger than start and stop value")
return None
if int(start) < int(stop):
while start < stop:
start = start + int(steps)
list1.append(start)
print(list1)
elif start > stop:
while start > stop:
stop = stop + int(steps)
list1.append(stop)
print(list1)
elif start == stop:
print(start)
else:
print("Values are not integers.")
for easier viewing:
https://www.codepile.net/pile/e95verLk
If you need help understanding comment below.
Answer:
Given,
P = (22, 1, 42, 10)
Q = (20, 0, 36, 8)
a. Formula for Euclidean Distance :
distance = ((p1-q1)^2 + (p2-q2)^2 + ... + (pn-qn)^2)^(1/2)
Now,
distance = ( (22-20)^2 + (1-0)^2 + (42 - 36)^2 + (10-8)^2) ) ^(1/2)
=( (2)^2 + (1)^2 + (6)^2 + (2)^2 ) ) ^(1/2)
=(4+1+36+4)^(1/2)
=45^(1/2)
Distance = 6.7082
b.Manhattan distance :
d = |x1 - x2| + |y1 - y2|
d = |22- 20| + |1 - 0|
d = |2| + |1|
Explanation:
Answer:
It allows for Non-linear editing