Skip to content

Commit

Permalink
Final QA (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahjelle authored Oct 18, 2024
1 parent f4d57c4 commit 1b448e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python-variables/employees.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def __init__(self, name, position, salary):
self.name = name
self.position = position
self.salary = salary
type(self).count += 1
Employee.count += 1

def display_profile(self):
print(f"Name: {self.name}")
Expand Down
2 changes: 1 addition & 1 deletion python-variables/scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def inner_func():
# Local scope
local_variable = "local"
print(f"Hi from the '{local_variable}' scope!")
print(f"Hi from the '{global_variable}' scope!")
print(f"Hi from the '{nonlocal_variable}' scope!")
print(f"Hi from the '{global_variable}' scope!")

inner_func()

Expand Down

0 comments on commit 1b448e6

Please sign in to comment.