Python basics, loops, conditional statements and functions