Advertisement
Aikiro42

print process

Jan 29th, 2020
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def print_process(li, index):
  2.     for i in range(len(li)):
  3.         if i == index:
  4.             print('[{}]'.format(li[i]), end=' ')
  5.         else:
  6.             print('{}'.format(li[i]), end=' ')
  7.     print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement