Hints:
1) you can use isinstance() to show it is an instance of integer which is mentioned in video/material
2) then use == and is to test whether it is exactly an integer
Hints:
1) xor operation ^ – if two bits are different it returns 1; otherwise, return 0.
2) try bin(3).count(“1”). This gets the number of 1 in bit in number 3.
1. Q1 – 30:
- (15) for “though boolean is instance of integer”
- (15) for “it is not exactly an integer”
- 20 pts for each of the first two coding questions.
- 30 pts for the last coding question.
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."