diff --git a/src/array.py b/src/array.py new file mode 100644 index 0000000..033c7f7 --- /dev/null +++ b/src/array.py @@ -0,0 +1,11 @@ + +def verifica_duplicata(): + array = [1,2,3,4,5,1] + if not(len(array) == len(set(array))) == False: + print(False) + print("Não há elementos distintos") + else: + print(True) + print("Há elementos distintos") + +verifica_duplicata() \ No newline at end of file diff --git a/src/features/times.py b/src/features/times.py index e69de29..843f532 100644 --- a/src/features/times.py +++ b/src/features/times.py @@ -0,0 +1,9 @@ +def times(a,b) + """ + Função para subtrair dois números. + + :param a: Primeiro número + :param b: Segundo número + :return: A subtração de a e b + """ + return a*b \ No newline at end of file