This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
A Bit More Complicated 13/14 Help pls!
a = 0b11101110
mask = 0b1000
result = a^mask
print bin(result)
My code not worked.
I need worked solution plsAnswer 53a30040631fe9316500208a
Worked Solution:
a = 0b11101110 mask = 0b11111111 result = a^mask print bin(result)
Answer 53ad95207c82cac528000348
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
that does not print the right result. Also, the operator should have been “| instead of ^. I don’t understand it because we are supposed to have only the third bit to the right, on. By the way, could someone please tell me what this is used for?