def print_emoji(n): print('😃' * n) number = input('Number: ') # bug print_emoji(number)
def print_emoji(n): print('😃' * n) number: int = input('Number: ') # bug print_emoji(number)
def print_emoji(n: int) -> None: print('😃' * n) number: int = int(input('Number: ')) # fixed bug emojis: str = print_emoji(number) # bug print(emojis)
def get_emoji(n: int) -> str: return '😃' * n number: int = int(input('Number: ')) emojis: str = get_emoji(number) print(emojis)