commit aula2_tipagem

This commit is contained in:
Simon Gonçalves Costa 2026-03-20 21:11:11 -03:00
parent f715cb7c7d
commit 30dee225de
1 changed files with 19 additions and 0 deletions

View File

@ -10,3 +10,22 @@ print(type(nome))
print(type(total)) print(type(total))
print(type(resultado)) print(type(resultado))
print(type(logico)) print(type(logico))
#Definição de funções em Python
def somar (a,b):
soma = a + b
return soma
print (somar(7,9))
def somarTipado(a: int, b: int) -> int:
return a + b
print (somarTipado(45, 45))
"""
from socket import socket
socket.accept()
"""