swaps caseslower case becomes upper case and vice versa noteall string methods returns new values they do not change the original string the in operator not let us take an example to get better understanding of the in operator working in here "xis the element and "yis the sequence where membership is being checked let' implement simple python code to demonstrate the use of the in operator and how the outputs would look like vowels [' '' '' '' '' 'ch input('please enter capital letter:\ 'if ch in vowelsprint('you entered vowel character'elseprint('you entered consonants character'we can use the "inoperator with strings and tuples too because they are sequences name='journaldev'din name true 'xin name false primes=( , , , , in primes true in primes false can we use python "inoperator with dictionarylet' see what happens when we use "inoperator with dictionary dict {"name""pankaj""id" print("namein dict true