Advertisement
VikkaLorel

no_enum example for courses

Nov 29th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. if __name__ == '__main__':
  2.     li = list(range(5, 10))
  3.     printed_step = list()
  4.     for e in li:
  5.         if e < 7:
  6.             printed_step.append(li.index(e))
  7.            
  8.     printed_step = [li.index(e) for e in li if e <7]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement