I`ve just started to learn my first coding language, python.
And I want to give to print() informations in my program, depending from user choice.
I am very fresh so pls be forgiving.
the code:
answer = input("Do You like it?" + " Yes/No")
    if answer = (yes)
    print("That`s great!\nThank You" + name + ".")
    else answer == (no)
print("Sorry to hear that\nPerhaps we could use other names?")

I want to give to print() informations in my program, depending from user choice.
I am very fresh so pls be forgiving.

How to use 'if' and 'else' function to distinguish answer 'yes' from 'no' in python3
you can try and modify this code. hope this helps
def ifelse():
    entername = input() #first user input
    print('Do you like it?') #first prompt 
    answer = input()
    
    if answer == 'yes': 
        print("That`s great!") 
        print("Thank You name" )
    else:  # you can also use 'elif answer == 'no'
        #but since you only have two choices consider this a shortcut
        print("Sorry to hear that")  
        print("Perhaps we could use other names?")
        
ifelse()

ps. you can format the print statement so that the user input 'entername' can be printed along side it [ you can also do this w/o using def fcns]
