Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created August 19, 2018 16:12
Show Gist options
  • Save StrikingLoo/30741d9b72d4e3fda0985e67ed93a721 to your computer and use it in GitHub Desktop.
Save StrikingLoo/30741d9b72d4e3fda0985e67ed93a721 to your computer and use it in GitHub Desktop.
def some_function(k):
# some lines of code doing something
# ...
another_list = []
for i in range(k):
if i%2 ==0:
another_list.append( (i*7 + 5) % 13 )
else:
another_list.append( (i*5 + 7) % 23 )
# ...
# more lines of code doing something else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment