Splitting code

creating p3.py file while prints the results.