Created
September 16, 2020 05:57
-
-
Save River2056/ecca1aae3d87e20028c131f7a4754dea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = [student_names[i] for i in range(len(is_absent)) if not is_absent[i]] | |
print(result) # 輸出['John', 'Leon', 'Jill'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment