How is the value for w calculated in below lines of code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How is the value for w calculated in below lines of code

n=int(input()) w= Len("{0:b}". format (n))

9th May 2019, 1:04 PM
Shivam Tewari
Shivam Tewari - avatar
0 Answers