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...
Popular interview questions of Sdet Automation Test Engineer
Top HR questions asked in Ecom Express Sdet Automation Test Engineer
>
Ecom Express Sdet Automation Test Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
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
Get AmbitionBox app