Indentation Error [closed]

梦想与她 提交于 2019-12-13 08:36:31

问题


I'm trying to define a method similar to the method max but I get an error for an expected indentation. I'm not exactly sure what is wrong with the code... I need help solving this.

def biggest(a,b,c):
    def bigger(a,b):
        if a > b:
            output = a
        else:
            output = b
        if output > c:
            return output
        else:
            return c

回答1:


You've mixed up tabs and spaces. Use python -tt to verify.



来源:https://stackoverflow.com/questions/10279359/indentation-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!