Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

index operator with if and elif statement in python

#index operator with if and elif statement in python
name = input("What is your name?: ")
if(name[0].islower()):
    name = name.capitalize()
    print(name)
elif(name[0].isupper()):
    print("Hellow "+name)
 
PREVIOUS NEXT
Tagged: #index #operator #elif #statement #python
ADD COMMENT
Topic
Name
2+2 =