Skip to content

Ejercicios 1 - Ejercicio numeros impares #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: Ejercicios-1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Ejercicios 1

# ejercicio

## Ejecutar tests

12 changes: 8 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Dict, List, Tuple

import datetime

# Escribe una funcion que regrese el valor de fibonacci en la posicion nth
def fibonacci(n: int) -> int:
# aqui escribe tu funcion
pass
return 1


# Escribe una funcion que verifique si una cadena es anagrama de otra
@@ -15,7 +15,11 @@ def is_anagram(str1: str, str2: str) -> bool:

# Escribe una funcion que regrese los numeros impares entre 0-100
def first_100_odd_numbers() -> List[int]:
pass
result = []
for i in range(0, 100):
if i % 2 != 0:
result.append(i)
return result


# Escribe una funcion que convierta un numero decimal a binario
@@ -37,4 +41,4 @@ def max_and_min_value_in_dict(values: Dict) -> Tuple[int, int]:

# Escribe una funcion que ordene numeros
def sort_numbers(nums: List[int]) -> List[int]:
pass
pass