repl.it
@ArjunSS1/

Messing around with arrays

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
result = ["Hello","Goodbye","Weird"]
inverted_result = []
x = 0
  
for line in result:
  inverted_result.append(line.replace("e",'EEEE').replace("H",'HHHHH'))
print(inverted_result)
?