خرید بک لینک

Vote count: 0

I am trying to write a programme that allows me to input values and obtain the maximum number when i key in "done".

My progress is as follows but it does not seem to work the way I intended it to. Please help if possible :).

def cal():
    rol = None
    while True:
        numb = raw_input("Please key in a number")

        if numb != type(int):
            print "Bad data inputed"
        elif numb == "done":
            print rol
            break
        else:
            rol == none or rol < numb
            rol = numb

asked 23 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 12 تير 1395 ساعت: 22:50

صفحه بندی