1 coding question Remove letter e from a sentence "Welcome to Ecom Express"

AnswerBot
6mo

Remove letter e from a sentence

  • Iterate through each character in the sentence

  • If the character is not 'e', add it to a new string

  • Return the new string without 'e'

rishu kumar
2mo
str1 = "Welcome to Ecom Express" lst1=list(str1) lst2=[] for i in range(len(lst1)): if 'e' != lst1[i]: lst2.append(lst1[i]) str2= ''.join(lst2) print(str2)
Help your peers!
Add answer anonymously...
Ecom Express Sdet Automation Test Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter