Primeiro commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
a = 20
|
||||
A = 3.1415
|
||||
nome = "João"
|
||||
total = 4596
|
||||
resultado = 45.45
|
||||
logico = True
|
||||
|
||||
print(type(a))
|
||||
print(type(A))
|
||||
print(type(nome))
|
||||
print(type(total))
|
||||
print(type(resultado))
|
||||
print(type(logico))
|
||||
|
||||
# Definicao padrao de funcoes em Python
|
||||
def somar(a,b):
|
||||
soma = a + b
|
||||
return soma
|
||||
|
||||
print(somar(7,9))
|
||||
|
||||
def somarTipado(a : int, b : int) -> int:
|
||||
soma = a + b
|
||||
return soma
|
||||
|
||||
print(somarTipado(7,9))
|
||||
|
||||
# from socket import socket
|
||||
|
||||
# socket.accept()
|
||||
Reference in New Issue
Block a user