Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
def UNGoals(studentID):
incrementor = 0.314
randomValue = int(int(studentID) / incrementor) % 17
value1 = randomValue
value2 = randomValue
while not(value1 >= 1 and value1 <= 17):
incrementor += 0.271
value1 = int(int(studentID) / incrementor) % 17
while (not(value2 >= 1 and value2 <= 17) or (value2 == value1)):
incrementor += 0.271
value2 = int(int(studentID) / incrementor) % 17
return value1, value2
print("Advanced Task A - Lab 1\n")
print("Your two UN Sustainability Topics are: " + str(UNGoals(input("Enter your student ID: "))) + '\n')