updated repository with strict typechecking
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 11s
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 11s
This commit is contained in:
parent
14c41cfd45
commit
68569900e0
5 changed files with 30 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
|||
from time import \
|
||||
sleep # the sleep function adds a delay, allowing time to tick down by a second rather than instantly
|
||||
from time import (
|
||||
sleep, # the sleep function adds a delay, allowing time to tick down by a second rather than instantly
|
||||
)
|
||||
|
||||
|
||||
def countdown(n: int) -> None:
|
||||
|
@ -25,5 +26,5 @@ def count(n: int) -> None: #this part of the code checks to see if a numb
|
|||
countup(n) #If negative, we'll utilize the countup function
|
||||
|
||||
if __name__ == "__main__":
|
||||
num = input("Enter a number: ")
|
||||
num: str = input("Enter a number: ")
|
||||
count(int(num))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue