What is the problem with my code?

yoavmelnik5 at gmail.com yoavmelnik5 at gmail.com
Mon Apr 27 02:24:46 EDT 2020


def is_positive_int(int):
    x = int[0]
    if int == "":
        return Flase
    elif int != "":
        print(True)
    if int[0] < 1:
        return false
    else:
        print(True)
    for x in int:
    if x > 0 and x < 10:
        print(True)
        x = x + 1
    else:
        return False
    if "." in int:
        return False
    else:
        print(True)
    return "int is True"
print(is_positive_int("1 2 3 4 5 6 7 8 9"))


More information about the Python-list mailing list