Activity for dino
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #285271 |
Post edited: |
— | almost 3 years ago |
Edit | Post #285271 |
Post edited: |
— | almost 3 years ago |
Edit | Post #285271 |
Post edited: |
— | almost 3 years ago |
Edit | Post #285271 |
Post edited: |
— | almost 3 years ago |
Edit | Post #285271 | Initial revision | — | almost 3 years ago |
Answer | — |
A: Find the IP address class [Python 3], 56 bytes lambda x:chr(65+f'{int(float(x[:3]))&8:08b}'.find('0')) Try it online! Takes in the ip address as a string and returns the classification letter. Explanation: - `x[:3]` extracts the first 3 characters - `int(float(…))` converts `str` to `int`, passing ... (more) |
— | almost 3 years ago |
- ← Previous
- 1
- 2
- Next →