commit aula2_tipagem
This commit is contained in:
parent
f715cb7c7d
commit
30dee225de
|
|
@ -10,3 +10,22 @@ print(type(nome))
|
|||
print(type(total))
|
||||
print(type(resultado))
|
||||
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()
|
||||
"""
|
||||
Loading…
Reference in New Issue