diff --git a/dia_01/main.py b/dia_01/main.py new file mode 100644 index 0000000..5596b44 --- /dev/null +++ b/dia_01/main.py @@ -0,0 +1,16 @@ +# This is a sample Python script. + +# Press Shift+F10 to execute it or replace it with your code. +# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. + + +def print_hi(name): + # Use a breakpoint in the code line below to debug your script. + print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint. + + +# Press the green button in the gutter to run the script. +if __name__ == '__main__': + print_hi('PyCharm') + +# See PyCharm help at https://www.jetbrains.com/help/pycharm/ diff --git a/dia_01/primer_proyecto.py b/dia_01/primer_proyecto.py new file mode 100644 index 0000000..6e8f33c --- /dev/null +++ b/dia_01/primer_proyecto.py @@ -0,0 +1,26 @@ +""" Primeros ejercicios """ + +print("Hola mundo") + +print(100 + 50) + +print("\nHOLA" + " " + 'MUNDO') + +print("\nMe llamo \"Manuel\"") + +print("Primera linea\nSegunda linea") + +print("\ttabulemos") + +print("This isn't a number") +print('This isn\'t a number') +print("Este signo \"\\\" es una barra invertida") + +print("\n\nHola ") +print("Tu nombre es " + input("Introduce tu nombre: ") + + " y tu apellido es " + + input("Introduce tu apellido: ")) + +print(input("¿Qué estás estudiando? ")) + +print(input("Escribe tu nombre: ") + " " + input("Escribe tu apellido: ")) diff --git a/dia_01/programa01.py b/dia_01/programa01.py new file mode 100644 index 0000000..c5f2fa7 --- /dev/null +++ b/dia_01/programa01.py @@ -0,0 +1,4 @@ +""" programa 01 del curso """ +print("La cerveza se llama\n" + + "\"" + input("¿Cuál es tu mascota favorita? ") + " " + input("¿Cuál es tu color favorito? ") + + "\"\n¡Felicidades por tu espumosa!")