Implemented Python code to show activity data.