Skip to content

alternate solution ( i think this is the python way) #1

Description

@dubeyji10

n = eval(input(""))
if n>15:
for i in range(0,n+1):
print("{:5b}".format(i))
else:
for i in range(0,n+1):
print("{:4b}".format(i))

indentation not visible in issue?

though it passed all the test cases it could be improved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions