Answer to Question #292035 in Python for codingrookie

Question #292035

Write a Python main function that reads in an integer. Then output (on a line by itself) # is Curzon or # is not Curzon. Have the majority complete just can not figure out what to set the if number= to to get it to print out


1
Expert's answer
2022-01-30T03:00:40-0500
n = int(input("Enter the number : "))


n1 = 2**n + 1
n2 = 2*n + 1


if(n1 % n2) == 0:
    print("is Curzon")
else:
    print("is not Curzon")

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