-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Harikishore B - 2nd Year CSE A 180501052 #148
base: master
Are you sure you want to change the base?
Conversation
l.append(a) | ||
print("The students present were:") | ||
for j in l: | ||
z="P" in j |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a flaw in your logic here. Checking if 'P' is in the string will lead to marking people with 'P' in their names present, even when they are absent. Think of the following test case:
Priya-A
Your code will mark Priya as present even when absent. Correct the code, commit the changes and comment acknowledging the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve the error in occurances.py
506e767
to
ff2ad70
Compare
No description provided.