Code Blocks
Unlike other languages that use a pair of open and close brackets {}, Python use indentation for code blocks. So formatting your code correctly is important.
This code:
# Declare a list of pin names
pin_names = ["resetn", "Oclk"]
# Iterate through all
for pin in pin_names:
print("Pin name: " + pin) # Inner code block is indentedPrints this result to the Python
console:
Pin name: resetn
Pin name: Oclk