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")) -- https://mail.python.org/mailman/listinfo/python-list
- What is the problem with my code? yoavmelnik5
- Re: What is the problem with my code? Chris Angelico