print(['><'[a<b],'=='][a==b])

Hi I’m very new to using python and will be asking a lot of questions
thanks for everyone who reads my questions and answer them!

The problem I have understanding is this:

a,b=map(int,input().split())
print([’><’[a<b],’==’][a==b])

I understand that the first row which is inputting a and b in integer form
but I don’t understand the second row
is this another form of using if/else condition?
It would really help if someone can explain how it works and how I can apply it differently (ex. adding elif form, make it work in string forms)

Please put the code in a Markdown code block, like so:

```
a, b = map(...)
```

The exact formatting is critical to understanding code, so it’s hard to answer otherwise.