Advanced python practice problems for beginners