in function demo : in « Buildin Function « Python






in function demo

in function demo
name = "ABCDESHGIs"

if 's' in name:
    print 'String contains the letter "s".'
else:
    print 'String does not contain the letter "s".'


           
       








Related examples in the same category

1.in a rangein a range
2.in can be applied to any 'iterable' objectin can be applied to any 'iterable' object