Skip to content

solution m2-015#175

Open
Stefano-A wants to merge 2 commits into
tomorrowdevs-projects:mainfrom
Stefano-A:solution/m2-015
Open

solution m2-015#175
Stefano-A wants to merge 2 commits into
tomorrowdevs-projects:mainfrom
Stefano-A:solution/m2-015

Conversation

@Stefano-A
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread projects/015-parity-bits/python/main.py Outdated
x = 0
u_bit = 'none'

while x < 8 and u_bit != '':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you find a way to optimize the while loop?

Comment thread projects/015-parity-bits/python/main.py Outdated
print('The number of bits must be equal to 8')

else:
n = byte.count('1')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is possible to avoid this count?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants