Nystring Elcome Kazguu 2819 Result Nextletter String Next Letterisalpha Elif Next Letteris Q37158851

what do this program get?
ny.string elcome to KazGuU 2819! result for next_letter in my string: if (next letter.isalpha)): elif (next, letter.isdigitony.string “elcome to KazGuU 2819! result for next_letter in my string: if (next letter.isalpha)): elif (next, letter.isdigito): elser result “X” +. result “#” +” result1 print (result) Show transcribed image text ny.string “elcome to KazGuU 2819! result for next_letter in my string: if (next letter.isalpha)): elif (next, letter.isdigito): elser result “X” +. result “#” +” result1 print (result)


Answer


The required output is

xxxxxxx!xx!xxxxxx!####!

isalpha – checks if char is alphabet or not
isdigit – checks if char is digit

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.