The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #949
x = "5 6 7 77 22222"
y = x.split(" ")
print(max(y))
In this case, the split() function returns a list of strings. As a string, 77 is evaluated as greater than 22222 as 7 is greater than 2. (careerkarma.com/blog/python-compare-strings)
Question difficulty: 🔵🔵🔵🔵🔵
Similar questions: