Question: I'm trying to get this example code to work:

```
a = ("good ")
b = ("morning")
z = input("Hi: ")
z
if z == "hello":
    print("good day!")
elif z == a and b:
    print("Good Night")
else:
   print("nope")

```

So I want it to print "Good Night" if the typed input is "good morning" (a and b) but it's not doing that. Instead it's printing "nope". What's the mistake I'm doing?

Answer: 
You need to join a and b strings as when you have the condition a and b it looks for making it true as a and b not by joining them! So you can do a + " " + b instead of a and b in the condition!
Writing `a and b` is equivalent to check whether `a` is a non-empty string, which is True. This then returns `b`. But `z` is not equal to `b` so it fails. You probably intended to concatenate them, which is done with the `+` symbol for strings. Change that if statement to:

```
elif z == a + b:
    print("Good Night")

```

---

If you want to ignore the order you can do:

```
elif (z == a + b) or (z == b + a):
    print("Good Night")

```