for num in nums python code example
Example 1: for num in value means in python
>>> n = -37
>>> bin(n)
'-0b100101'
>>> n.bit_length()
6
Example 2: python for loop
A for loop iterates through an iterable, may that be an array, a string, or a range of numbers
#Example:
myArr = ["string 1", "string 2"]
for x in myArr:
print(x)
#Returns "string 1", "string 2". In here the x is an iterator and does not need to be defined.