Skip to content

Conversation

Stefano-A
Copy link
Collaborator

No description provided.

x = 0
u_bit = 'none'

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

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?

print('The number of bits must be equal to 8')

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

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