Python Logical Thinking Questions