Created
September 16, 2020 05:49
-
-
Save River2056/9c2b21acaa58df97a16fc50d239270a1 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 = [] | |
for i in range(len(is_absent)): | |
if not is_absent[i]: | |
result.append(student_names[i]) | |
print(result) # 輸出['John', 'Leon', 'Jill'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment