Answer to Question #302125 in Python for Ujjwal

Question #302125

Develop a python code to accept two numbers from the user to check whether those number



are divisible by both 3 and 5 or not .

1
Expert's answer
2022-02-24T04:24:54-0500

def checkDiv(num1, num2):

array = [num1, num2]

for i in array:

if i % 3 == 0 and i % 5 == 0:

print(i,' is divisible by both 3 and 5')

else:

print(i, 'is not divisible by both 3 and 5')



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS