#!/usr/bin/python
# -*- coding: utf-8 -*-
schet = 0
def func1(schet):
schet = func2(schet)
return schet
def func2(schet):
if schet < 24:
schet +=1
print(schet)
return schet
while 1:
schet = func1(schet)
if schet < 24:
TypeError: unorderable types: NoneType() < int()