You are highly encouraged to save your work frequently and maintain backups of your computer and, especially, any programs you are writing for this class. "My computer crashed" or "I lost my usb drive" are not valid excuses for turning an assignment in late.
You should always have multiple copies of your work. You can have one on your computer or laptop and another on Box, Dropbox, email, or a usb drive.