<gh_stars>0
#!/usr/bin/python3
def safe_print_list_integers(my_list=[], x=0):
    i = 0
    for index in range(x):
        try:
            print("{:d}".format(my_list[index]), end="")
            i += 1
        except (ValueError, TypeError):
            pass
    print()
    return i

#!/usr/bin/python3
def safe_print_list_integers(my_list=[], x=0):
    i = 0
    for index in range(x):
        try:
            print("{:d}".format(my_list[index]), end="")
            i += 1
        except (ValueError, TypeError):
            pass
    print()
    return i
#!/usr/bin/python3