Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

All codes needs to be in python using while loop not for loop: Also, Do not worr

ID: 3934591 • Letter: A

Question

All codes needs to be in python using while loop not for loop:

Also, Do not worry about testing the code I have the code to test it just focus on the questions.

Problem 1: Write code that checks every adjacent pair of numbers in a list to see if either is a factor of the other and returns all factor-pairs in order. For example, the list [2, 6, 12, 3, 7, 8, 16, 10] would yield ["2-6", "6-12", "3-12", "8-16"]. You may not use any built-in functions/methods besides len() and .append(). Problem 2: Write code that takes two strings from the user, replaces all instances of the second string with box in the first. For example, happymondayhappyday and happy yields the result boxmondayboxday. We will guarantee the second string will be less than four characters long. You may not use the built-in replace function.

Explanation / Answer

# Problem 1; def adjacent_pair(data): """ :param data :return: """ final_data = [] count = 0 data_length = len(data) - 1 while count
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote