diff --git a/README.md b/README.md index fa0237d..e2ed6ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # OpenBootCampPython Repository to store Python boot camp. + +* Exercise 4: Escribe un programa que sea capaz de mostrar los nĂºmeros del 1 al 100 en orden inverso. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ee2bf11 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +-i https://pypi.org/simple +setuptools==65.5.0 ; python_version >= '3.7' +wheel==0.38.0 diff --git a/src/exercisefour/invertedCount.py b/src/exercisefour/invertedCount.py new file mode 100644 index 0000000..6582206 --- /dev/null +++ b/src/exercisefour/invertedCount.py @@ -0,0 +1,7 @@ +def invertedCount(): + """Script that show in terminal numbers from 100 to 1 + :return: None + :rtype: NoneType + """ + for i in range(100, 0, -1): + print(i) diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..c980955 --- /dev/null +++ b/src/main.py @@ -0,0 +1,13 @@ +from src.exercisefour.invertedCount import invertedCount + + +def main(): + """Main script for exercise four + :return: None + :rtype: NoneType + """ + invertedCount() + + +if __name__ == '__main__': + main()