You are viewing a single comment's thread. Return to all comments →
it is used for slicing the first two elements of the string.
for example if word = 'helloguys' word[2:] will return 'lloguys'
so bin function returns a binary value as 0b..., so to remove it i have used the function
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
it is used for slicing the first two elements of the string.
for example if word = 'helloguys' word[2:] will return 'lloguys'
so bin function returns a binary value as 0b..., so to remove it i have used the function