Skip to content
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.

Progress Page

Cameron edited this page Oct 17, 2019 · 7 revisions

Current progress:

save2file.py example File: save2.py

Function: will eventually save the output of the 'winner' of the Dice Game to a file on the computer (.txt)

Code:

import sys import time

dicewinner = "Player 2"

f = open ("winner.txt", "w") f = open ("winner.txt", "a") f.write(dicewinner)

f.close()

Clone this wiki locally