import pyfiglet
def to_color(string, color):
color_code = {'blue': '\033[34m',
'yellow': '\033[33m',
'green': '\033[32m',
'red': '\033[31m'
}
return color_code[color] + str(string) + '\033[0m'
text = pyfiglet.figlet_format(text = "SenpaiCode", font = 'Slant')
print(to_color(text,'yellow'))
num1 = int(input("Enter the first number: "))
num2 = int(input("Enter the second number: "))
num3 = int(input("Enter the third number: "))
if num1 < num2 and num1 < num3:
if num2 < num3:
print(num1 < num2 < num3)
if True:
print(num1, "<", num2, "<", num3)
else:
print(num1, "<", num3, "<", num2)
elif num2 < num1 and num2 < num3:
if num1 < num3:
print(num2 < num1 < num3)
if True:
print(num2, "<", num1, "<", num3)
else:
print(num2, "<", num3, "<", num1)
else:
if num1 < num2:
print(num3 < num1 < num2)
if True:
print(num3, "<", num1, "<", num2)
else:
print(num3, "<", num2, "<", num1)
0 Comments