number histogram 1


/ Published in: Python
Save to your folder(s)

print number histogram 1


Copy this code and paste it in your HTML
  1. #!/usr/bin/python
  2.  
  3. def func(a, b):
  4. for i in range(a, b+1):
  5. for j in range(a, b+1):
  6. if i==j:
  7. for count in range(i):
  8. print j,
  9. else: print j,
  10. print
  11. #print func(1,5)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.