Skip to content

Instantly share code, notes, and snippets.

View ticktacktech's full-sized avatar
💭
I may be slow to respond.

Ozman Musa ticktacktech

💭
I may be slow to respond.
View GitHub Profile
from typing import Any, List, Tuple
def is_valid_odd_number(value: Any) -> bool:
"""Check if the value is a valid odd integer"""
return isinstance(value, int) and value % 2 != 0
def double_odd_numbers(data: List[Any]) -> List[int]:
"""Extract odd integers from the input and return them doubled"""