Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/babuenop/Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto committed Nov 17, 2020
2 parents 9b40f1f + 8f5b260 commit 07f5a70
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
# =========================
7 changes: 7 additions & 0 deletions Graficos/Pantalla.pyw
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from tkinter import*
raiz=Tk()
raiz.title("Menu")
raiz.iconbitmap("icono.ico")
raiz.geometry("600x400")
raiz.mainloop()

Binary file added Graficos/The Mills - Cuando Estés Afuera.mp4
Binary file not shown.
Binary file added Graficos/icono.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions Saludos.py
Original file line number Diff line number Diff line change
@@ -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))


1 change: 1 addition & 0 deletions condiciones.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
def saludo
5 changes: 5 additions & 0 deletions condiciones.py3
Original file line number Diff line number Diff line change
@@ -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")
16 changes: 16 additions & 0 deletions cuadrado.py
Original file line number Diff line number Diff line change
@@ -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()
23 changes: 23 additions & 0 deletions cuadrado_funciones.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 07f5a70

Please sign in to comment.