DEV Community

Discussion on: What is an easy bit manipulation technique I can learn in 5 minutes?

Collapse
 
love profile image
love

Not sure if this qualifies but a lot of people don't know about the f-string feature in python. You can do for example :

import os
file = 'test.txt'
print(f"File is located at: {os.path.realpath(file)}")

Collapse
 
pandaquests profile image
Panda Quests

What has this to do with bit manipulation?

Collapse
 
love profile image
love

Lol I think I totally read over your question too quickly or it must have been very late when I wrote that.