Answer to Question #304490 in Python for Kate

Question #304490

Create a program that identifies if the entered number is divisible by 7.Use tbe mod operator


1
Expert's answer
2022-03-02T14:10:13-0500
x = int(input("Enter a number:"))
if(x%7==0):
     print(x,"is divisible by 7")
else:
     print(x,"is NOT divisible by 7.")

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