This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print ("Melissa Mandyck") | |
| for a in range(1,101): #iterates loop from 1 to 100 | |
| b = set() #taking b as set() an empty one | |
| for i in range (1,101): #for each i from 1 to 100 | |
| c = a**i%101 #assigning a^x%101 to c | |
| b.add(c) #adding element into set | |
| if(len(b)==100): #if length equals then enters into if and displays a | |
| print(a) |