Write a Python function which takes an integer as parameter. The integer is either equal to 1 or is a positive 5-digit integer. If integer is equal to 1: the function should ask the user to key in a...


Write a Python function which takes an integer as parameter. The<br>integer is either equal to 1 or is a positive 5-digit integer.<br>If integer is equal to 1: the function should ask the user to key in a<br>positive integer . The function should return True if the positive integer<br>is divisible by exactly 3 distinct positive integers, between 1 and integer<br>inclusive. Otherwise, the function should return False.<br>You are not allowed to convert integer to a string, and no lists. You can<br>use integer division and modulo.<br>

Extracted text: Write a Python function which takes an integer as parameter. The integer is either equal to 1 or is a positive 5-digit integer. If integer is equal to 1: the function should ask the user to key in a positive integer . The function should return True if the positive integer is divisible by exactly 3 distinct positive integers, between 1 and integer inclusive. Otherwise, the function should return False. You are not allowed to convert integer to a string, and no lists. You can use integer division and modulo.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here