remove letters from string in Python

 remove letters from string in Python


  1. x="This is exapmle of removing N and R from string" 
  2. for i in range(len(x)): 
  3. if x[i]=='N' or x[i]=='R': 
  4. pass 
  5. else: 
  6. print(x[i],end="") 

Comments

  1. Thanks for sharing good blog. If you are looking for best web design service in USA then contact Qdexi Technology for digital marketing help.

    ReplyDelete

Post a Comment

Popular posts from this blog

Programmingshark index 6

Proassignmenthelp index 12

Proassignmenthelp index 27