diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bdb0cab --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acf4f59 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= diff --git a/Graficos/Pantalla.pyw b/Graficos/Pantalla.pyw new file mode 100644 index 0000000..daada06 --- /dev/null +++ b/Graficos/Pantalla.pyw @@ -0,0 +1,7 @@ +from tkinter import* +raiz=Tk() +raiz.title("Menu") +raiz.iconbitmap("icono.ico") +raiz.geometry("600x400") +raiz.mainloop() + diff --git "a/Graficos/The Mills - Cuando Est\303\251s Afuera.mp4" "b/Graficos/The Mills - Cuando Est\303\251s Afuera.mp4" new file mode 100644 index 0000000..79982a7 Binary files /dev/null and "b/Graficos/The Mills - Cuando Est\303\251s Afuera.mp4" differ diff --git a/Graficos/icono.ico b/Graficos/icono.ico new file mode 100644 index 0000000..7b7d6a9 Binary files /dev/null and b/Graficos/icono.ico differ diff --git a/Saludos.py b/Saludos.py new file mode 100644 index 0000000..820ed36 --- /dev/null +++ b/Saludos.py @@ -0,0 +1,8 @@ + + +name = str(input("Cual es tu nombre? ")) + +edad = int(input(("Cual es tu edad?"))) +print ("hola "+ name+" !, tu edad es: "+ str(edad)) + + diff --git a/condiciones.py b/condiciones.py new file mode 100644 index 0000000..134d979 --- /dev/null +++ b/condiciones.py @@ -0,0 +1 @@ +def saludo \ No newline at end of file diff --git a/condiciones.py3 b/condiciones.py3 new file mode 100644 index 0000000..3cd4dbb --- /dev/null +++ b/condiciones.py3 @@ -0,0 +1,5 @@ +numero = int(input("Escriba un número: ")) +if not numero % 2: + print(f"{numero} es par") +else: + print(f"{numero} es impar") \ No newline at end of file diff --git a/cuadrado.py b/cuadrado.py new file mode 100644 index 0000000..c8c99bc --- /dev/null +++ b/cuadrado.py @@ -0,0 +1,16 @@ +""" +File: ejemplo_inicial.py + +""" +import turtle +window = turtle.Screen() +t = turtle.Turtle() +t.forward(50) +t.left(90) +t.forward(50) +t.left(90) +t.forward(50) +t.left(90) +t.forward(50) +t.left(90) +turtle.mainloop() diff --git a/cuadrado_funciones.py b/cuadrado_funciones.py new file mode 100644 index 0000000..8cb1c3b --- /dev/null +++ b/cuadrado_funciones.py @@ -0,0 +1,23 @@ + +import turtle +def main(): + window = turtle.Screen() + t = turtle.Turtle() + make_square(t) + turtle.mainloop() + + +def make_square(t): + length = int(input("Tamaño:")) + + for i in range(3): + make_line_and_turn(t,length) + + make_line_and_turn(t,length) + +def make_line_and_turn(t,length): + t.forward(length) + t.left(90) + +if __name__ == '__main__': + main()