Skip to content
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

Incorrect self._s value in E4-1.py #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Incorrect self._s value in E4-1.py
self._s has an incorrect value asignment in the __Init__() method.

Expected value for self._s is s.
Actual value for self._s is h

I have updated the value of self._s to s.
  • Loading branch information
alexhewson authored Sep 24, 2023
commit f71e098d05f9c1b1ea691d1f7c37a039599facf3
2 changes: 1 addition & 1 deletion exercise-code/E4-1.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Time:
def __init__(self,h,m,s):
self._h = h
self._m = m
self._s = h
self._s = s

#Read-only field accessors
@property
Expand Down