How file iterations in Python work. With some StackOverflow help.
From zero to hero in Linux is a tutorial to learn the command line and basic Linux commands.
Execute many commands in one line in Linux
Follow this to execute a script in a different directory in Linux.