Write a Python program to create the combinations of 3 digit combo


Introduction

Write a Python program to create the combinations of 3 digit combo. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. numbers = []
  2. for num in range(1000):
  3. num=str(num).zfill(3)
  4. print(num)
  5. numbers.append(num)

Result

python language techstudy.org

     





Related Topics




Popular Posts