Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 6
Can someone help me ? Please š
Can I use for loops to get a word from a text like : file called "hello.txt" ( just writes hello or hey there š ) can i find a word in it's text and edit it using for loops like for "hello" in "hello.txt": print("hey there")
2 Respostas
+ 6
@Carlos AndrĆ©s Hidalgo MartĆ but how I tried to use the readlines with for loops like for "hello" in file.readlines
+ 1
Of course, you should review the file writing and reading part of the python course, there it is.