summaryrefslogtreecommitdiff
path: root/progs/a641.py
blob: 51393cd7665b57a9ea018e4cd4c0d29976055eb3 (plain)
1
2
3
4
5
def count_first_elements(test_tup):
  for count, ele in enumerate(test_tup):
    if isinstance(ele, tuple):
      break
  return (count)