Finding index of substring

str2= " hello  everyone good morning to all to"
str2.find("to")

Checking the string is upper or lower 
n= 5
each= 1
While each<=n:
   Print ("enter a string")
   str3= input()
   str3.islower()
    str3.isupper()
