Open
Description
If possible could you share your show_some_digits code. The blog accessible definition does not work.
Thanks
def show_some_digits(number, num_digits=2):
"""Displays the first 'num_digits' digits of a number."""
# Convert number to string
number_str = str(number)
# Extract the first 'num_digits' characters
return number_str[:num_digits]
Metadata
Metadata
Assignees
Labels
No labels