Closed denizeu closed 2 years ago
Where did you find f.read().strip() == ""
?
f.read()
is, I'm guessing, reading content from a file.strip()
removes any trailing white space, like a new line... == ""
is asking if it's an empty stringSo all together, I think this is asking if the file (or file pointer) is empty / at the end?
What I accomplished last week
42
What I plan to do next week
Is there anything that Kevin can help with
f.read().strip() == "":
means.. when I looked it up it says it looks in a string, does this mean it will see if the input is present?How did the last week go?