phone = "4374"
print("I have a secret phone number. It has", len(phone), "digits.")
print("I cannot tell you the number or its digit. But if you guess a digit, I can tell you if your guess is correct or not.")
pos = int(input("Enter the position [1.." + str(len(phone)) + "]: "))
digit = int(input("Enter the digit at position " + str(pos) + ": "))

if pos <= len(phone) and phone[pos - 1] == digit:
    print("Your guess is correct.")
else:
    print("Sorry, you need to try again: ", phone[pos - 1])




def a():
    print("a")
    return True
def b():
    print("b")
    return True
def c():
    print("c")
    return True

if a() and (b() or c()):
    print("Whole condition is true.")
else:
    print("Whole condition is false.")
