Answer to Question #220417 in Python for Hari nadh babu

Question #220417

Uncommon Number

Write a Python program of Uncommon Number. It consists of two test cases


The below link contains Uncommon Number - Question, explanation and test cases


https://drive.google.com/file/d/1jkxCFS8UyRSlxvHFJ95HO_0Tq5JTf5nY/view?usp=sharing


We need all test caese can be come while code was running

1
Expert's answer
2021-07-25T08:40:13-0400
N = eval(input('Enter integer here:'))
prime_list = [2,3,5,7]
list1 = []
for i in prime_list:
    if N % i == 0:
        list1.append(True)
    else:
        list1.append(False)
if True in list1:
    print(False)
else:
    print(True)

Enter integer here:5633
True

Enter integer here:1000
False
        
        

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