If-else (program in python)

            If-else (program in python)

Code :

"""

@author: Sanjay Sharma

"""

names=["Mom","Papa","Sis","Friends"]


name=input("please enter your name\n")


if name in names:

    print("you are important in my life")

else:

    print("my heart is busy please try again")

Out Put :                             

please enter your name

GF

my heart is busy please try again



Comments

Popular posts from this blog

What is Resistor

Introduction To Triac

Nested For Loop (Multiple line) in Python