Question: I'm trying to make a program that will check if two numbers have the same digits but in different order. For example, 232 and 223 will print "true" but 123 and 223 will print "false".
Now I have no mistakes but the answer should be "true" and it's not:

my code:

```
a=322 
b=223

list_a = list(str(a))
list_b = list(str(b))
c=len(str(a))
d=len(str(b))

j=0

if c != d:
    print "false"
else:
    for i in range(len(list_a)):
        while j<d:
           if i == list_b[j]:
            list_b.remove(list_b[j])
            break
           j=j+1
        j=0

if list_b==[]:
    print "true"

```

Answer: 
**Python Comparison Operators**
In fact, this is the first and easiest practice about the *Python Comparison Operators*.
Let's Get Code !

```
first_Number = input('Enter firstNumber: ') #Prompt first number from user
second_Number = input('Enter secondNumber: ') #Prompt second number from user
# Pay Attention that the numbers we got from users are integers in the string Format
first_Number_int = int(first_Number) # Then we need to convert the string to integer ( with int() Function)
second_Number_int = int(second_Number) # Same conversion for second number 
#We could write in this way to optimize and legiblely write code instead of the top 4 lines of code in summary. 
# first_Number = int(input('Enter firstNumber: '))
# second_Number = int(input('Enter secondNumber: '))
# We need conditional statment to measure and compare between two numbers. 
# We'll have three different results. 
if (first_Number_int > second_Number_int): # First : first number is bigger than second number
    print('firstNumber is Bigger than secondNumber') 
elif (first_Number_int < second_Number_int)) : # Second : second number is bigger than first number 
    print('secondNumber is Bigger than firstNumber')
else: # Third: Equal ( Some people only take two conclusions that only numbers are bigger than each other )  
    print('firstNumber and secondNumber are Euqal to Eachother')

```

I hope I've been able to help you, my dear friends.

The problem that my mind is busy with, is there another way to compare two numbers in python?
If you, my dear friends, find another solution, I'd be happy to learn.

Thank you so much ,

Sepehr Tajbakhsh

2 November , 2022
I think it helps

```
    a = 323
    b = 233

    al = [c for c in str(a)]
    bl = [c for c in str(b)]

    print sorted(al) == sorted(bl)

```