commit aula2_listas

This commit is contained in:
Simon Gonçalves Costa 2026-03-20 21:49:58 -03:00
parent d2961f970e
commit 548ea411b9
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#Tipo de lista 1 - lista = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
lista = []
for i in range (10):
lista.append(i)
print(lista)
#Tipo de lista 2 - [operacao for i in lista]
lista = [i for i in range(10)]
lista = [i*2 for i in range(100)]
lista = [f"192.168.0.{i}" for i in range(255)]
print (lista)