Join the IDNLearn.com community and get your questions answered by knowledgeable individuals. Discover prompt and accurate answers from our experts, ensuring you get the information you need quickly.

Identify the structure and function of for loops when coding for an algortithm.
What is the result of this code?
for num in range(-1,1):
print("Num is set to: ",num)

a.) Num is set to: -1
Num is set to: 0
b.) An error because num has not been defined.
c.) Num is set to: -1
Num is set to: 0
Num is set to: 1
d.) Num is set to: 0 Num is set to: 1