-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from glaubervila/release/v0.1
Release/v0.1
- Loading branch information
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# TODO: Adicionar funções com as 4 operações | ||
|
||
def soma(a, b): | ||
"""Retorna a soma entre 2 valores inteiros | ||
Args: | ||
a (int): qualquer valor inteiro | ||
b (int): qualquer valor inteiro | ||
Returns: | ||
int: Resultado da soma entre a e b | ||
""" | ||
return int(a) + int(b) | ||
|
||
|
||
def multiplica(a, b): | ||
"""Retorna o resultado da multiplicação de dois números | ||
Args: | ||
a (int): número inteiro | ||
b (int): número inteiro | ||
Returns: | ||
int: Resultado da multiplicação de "a" e "b" | ||
""" | ||
return int(a) * int(b) | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
print("---------- Caluladora Hardcoded ----------") | ||
|
||
# TODO: Escrever exemplos usando as funçoes. | ||
|
||
print(multiplica(2, 2)) | ||
print(soma(2, 2)) | ||
|