r/PythonLearning • u/svanidzelal • 2d ago
CHECK YOUR KNOWLEDGE #python #coding #pythonessperspective #learnpython
https://youtube.com/shorts/M1nuXOH0Dqg?si=jbH-Yyk8XQMhvb5N
7
Upvotes
r/PythonLearning • u/svanidzelal • 2d ago
12
u/RNG_HatesMe 2d 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
1
u/svanidzelal 2d ago
A
3
u/ounis81 2d ago
E
2
u/North_Dog9837 2d ago
E
1
u/Chorizo_n_eggs 2d ago
Hundy
1
u/LumpyConclusion7604 2d ago
C
1
u/LumpyConclusion7604 2d ago
How did you do that so fast? = Super YouTube
1
u/North_Dog9837 2d ago
Inspirational
1
u/Unlikely-Let-1798 2d ago
E
1
u/Unlikely-Let-1798 2d ago
Better than all competitors.
1
u/RyanDubois43 2d ago
Start with LeetCode's "Two Sum" problem in the Python section to test your basics.
1
u/Naive_Programmer_232 2d ago
10e1
1
u/Dungeon-Guard95mh 1d ago
option E 100
1
u/_GreyPrinceZot3_ 22h ago
E 100%