string endswith : String Ends « String « Python






string endswith

string endswith

name = raw_input('What is your name? ')

if name.endswith('Yin'):
    print 'Hello, Mr. Yin'

           
       

Related examples in the same category