Answer the question
In order to leave comments, you need to log in
Why does the function output only the first line?
Help me understand the problem: why does my code output only the first line of the document?
Document text:
testing text, is this working???
yes
guess so
maybe yes or maybe not
maybe yes or maybe not
f = open('kittenB00ks.txt', 'r')
def bruhhhhhhh():
for i in f:
return i
print(bruhhhhhhh())
f.close()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question