for instance this code
i = 16
print(len(bin(i)))
print(len(f'{i:b}'))
prints 7 and 5 respectively. Is it not converting an int into binary representation on both occasions? why is the length different?
Edit: I'm a complete smooth brain. I've been working on beginner python challenges and despite what it might look like, It genuinely did not occur to me to just print it and see the difference. Frustration and mental fatigue got the better of me. Cheers to everyone who took the time to answer my stupid question.