-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from Dog-Face-Development/willtheorangeguy-pyt…
…hon-structure Change Python file structure
- Loading branch information
Showing
6 changed files
with
26 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Copyright 2017-2022 Dog Face Development Co. | ||
import time | ||
|
||
# Main Time Function | ||
def timeStart(): | ||
# Variables to keep track and display | ||
Sec = 0 | ||
Min = 0 | ||
# Begin Process | ||
timeLoop = start | ||
while timeLoop: | ||
Sec += 1 | ||
print(str(Min) + " Min " + str(Sec) + " Secs ") | ||
time.sleep(1) | ||
if Sec == 59: | ||
Sec = 0 | ||
Min += 1 | ||
print(str(Min) + " Minutes ") | ||
if Min == 15: | ||
break | ||
|
||
# Ask to Begin | ||
start = input("Would you like to begin Timing? (y/n): ") | ||
if start == "y": | ||
timeStart() | ||
# Copyright 2017-2022 Dog Face Development Co. | ||
import time | ||
|
||
# Main Time Function | ||
def timeStart(): | ||
# Variables to keep track and display | ||
Sec = 0 | ||
Min = 0 | ||
# Begin Process | ||
timeLoop = start | ||
while timeLoop: | ||
Sec += 1 | ||
print(str(Min) + " Min " + str(Sec) + " Secs ") | ||
time.sleep(1) | ||
if Sec == 59: | ||
Sec = 0 | ||
Min += 1 | ||
print(str(Min) + " Minutes ") | ||
if Min == 15: | ||
break | ||
|
||
# Ask to Begin | ||
start = input("Would you like to begin Timing? (y/n): ") | ||
if start == "y": | ||
timeStart() |
File renamed without changes.
File renamed without changes.