MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1xxb22n/check_your_knowledge_python_coding/19sp5avhnvcoz/?context=3
r/PythonLearning • u/svanidzelal • 4h ago
16 comments sorted by
View all comments
10
A and B are obviously incorrect, as total never refers to title.
D is incorrect because 2 nested loops can definitely iterate over the same thing.
The inner loop iterates 10 times for the 10 characters in title ("The Escape").
The outer loop iterates the inner loop 10 times for the same reason.
So the answer is 10 * 10 = 100, so E
10
u/RNG_HatesMe 4h ago
A and B are obviously incorrect, as total never refers to title.
D is incorrect because 2 nested loops can definitely iterate over the same thing.
The inner loop iterates 10 times for the 10 characters in title ("The Escape").
The outer loop iterates the inner loop 10 times for the same reason.
So the answer is 10 * 10 = 100, so E