Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

itercompat.py 184B

12345678
  1. def is_iterable(x):
  2. "An implementation independent way of checking for iterables"
  3. try:
  4. iter(x)
  5. except TypeError:
  6. return False
  7. else:
  8. return True