Using time module in Python : <p>I have a text file named as 'time' and want to save the current date and time from the computer in the text file every-time the player plays the game(Snake and ladder).
Please help me to figure it. 
I have tried making a function for it and add the current date in the file and append the new date and time in text file when the user plays the game but an error occurs every-time.</p>
