Skip to content

Commit

Permalink
fix: Pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Allber Fellype committed Nov 28, 2024
1 parent 2265bcb commit 3464122
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desafio-10/JamesStewart-314/python/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ def __init__(self) -> None:
self._tape_position = 0
self._current_state = '0'

def __repr__(self) -> str:
return f"{self.__class__.__name__}<{self._turing_rules = }, "\
f"{self._tape_position}, {self._current_state}>"

def _convert_symbol(self, old_symbol: str, new_symbol: str) -> str:
if new_symbol == '*':
return old_symbol
elif new_symbol == '_':
if new_symbol == '_':
return ' '
return new_symbol

Expand Down

0 comments on commit 3464122

Please sign in to comment.