diff --git a/README.md b/README.md index fa0237d..fbcf505 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # OpenBootCampPython Repository to store Python boot camp. + +* Exercise 1: Desde la consola de python almacena la cadena “Hola mundo!” en una variable y muéstrala. Tienes que subir capturas de pantalla en una carpeta comprimida zip. + + * Screenshot in folder "src/ExerciseOne/helloworld.png" on branch ExerciseOne. 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/exerciseone/helloworld.png b/src/exerciseone/helloworld.png new file mode 100644 index 0000000..ce71036 Binary files /dev/null and b/src/exerciseone/helloworld.png differ diff --git a/src/exerciseone/helloworld.py b/src/exerciseone/helloworld.py new file mode 100644 index 0000000..d5cba7e --- /dev/null +++ b/src/exerciseone/helloworld.py @@ -0,0 +1,7 @@ +def helloworld(): + """Script that show in terminal the string 'Hola mundo!' + :return: None + :rtype: NoneType + """ + a = "Hola mundo!" + print(a) diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..40ba958 --- /dev/null +++ b/src/main.py @@ -0,0 +1,13 @@ +from src.exerciseone.helloworld import helloworld + + +def main(): + """Main function for helloworld exercise + :return: None + :rtype: NoneType + """ + helloworld() + + +if __name__ == '__main__': + main()