t = int(input("")) p = 0 mylist = [] if t >= 0 and t < 101: while p<t: a = int(input("a ")) b = int(input("b ")) c = int(input("c ")) if a <= 20000 and a >= 1: if b <= 20000 and a >=1: if c <= 20000 and c >=1: if a+b<=c or a+c<=b or b+c<=a: txt = ("nelze sestrojit") else: if a == b and b == c and c == a: txt = ("rovnostranny") elif a == b or b == c or c == a: txt = ("rovnoramenny") else: txt = ("obecny") else: txt = ("moc velké nebo malé číslo") else: txt = ("moc velké nebo malé číslo") else: txt = ("moc velké nebo malé číslo") p = p+1 mylist.append(txt) print(p) print(mylist) else: print("syntax")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter