Computer Science, asked by agarwaljaanhvi, 6 months ago

Below is a function named multiple_of_13_in_range(start, end) which loops through the numbers between start and end (inclusive), returning true if there is a number in between them that can be divided by 13. For this function start and end are guaranteed to be integers, where start <= end.
As written, the below implementation has a potential semantic error!:

def multiple_of_13_in_range(start, end):
current_num = start
num_found = False

while current_num <= end:
if current_num % 13 == 0:
num_found = True
else:
num_found = False
current_num += 1

return num_found


For question #1, identify the semantic error in the implementation above and describe in general how you would fix it.

Answers

Answered by coolmustafa1017
4

Answer:

first u have to mark me brainliest and follow me for more plzzz than

Similar questions