Closed PyProgrammer289 closed 2 years ago
I find the code:
sentence="It was a bright cold day in april, and the clocks were striking thirteen."
indexc=sentence.index(",")
print(sentence[:indexc])
more efficient since the solution provided makes the person have to count.
what you guys think?
I find the code:
sentence="It was a bright cold day in april, and the clocks were striking thirteen."
indexc=sentence.index(",")
print(sentence[:indexc])
more efficient since the solution provided makes the person have to count.
what you guys think?