Skip to content

Commit

Permalink
for
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-emarquez committed Apr 20, 2022
1 parent 6f68b3e commit fecb324
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Python Basic/for.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# for

cadena = 'Hola'

for letra in cadena:
print(letra)
else:
print('Fin ciclo for')

7 changes: 7 additions & 0 deletions Python Basic/for2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

lis = [1, 2, 3, 4, 5]

for i in range(len(lis)):

print(lis[i])

0 comments on commit fecb324

Please sign in to comment.