Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tips/python_forEnumerate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Python #PY #Programming #Hacktoberfest
Si necesitas tener una copia y el índice de cada elemento de una lista, puedes utilizar el comando **enumerate**. Ej: `for i, item in enumerate(my_list)`
2 changes: 2 additions & 0 deletions tips/python_mainPython.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Python #PY #Programming #Hacktoberfest
Para que una surrutina no se ejecute cuando tu archivo python es llamado por otro fichero python, escribela después de `if __name__ == '__main__':`