coding practice using python