import appuifw a = appuifw.query (u"Vvedite A:","float") b = appuifw.query (u"Vvedite B:","float") c = appuifw.query (u"Vvedite C:","float") d = (b*b)-(4*a*c) if c == 0: d = (b*b)-(4*a) dis = unicode(d) appuifw.note (u"Diskriminant raven " +dis) elif a == 0: appuifw.note (u"Neverno, A = 0") elif b == 0: appuifw.note (u"Neverno, B = 0") else: dis = unicode(d) appuifw.note (u"Diskriminant raven "+dis) if d <= 0: appuifw.note(u"D <= 0")