Skip to content

Instantly share code, notes, and snippets.

@Deep18-03
Created April 21, 2020 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deep18-03/93f55b6098e4bc232af74faf18d4dbde to your computer and use it in GitHub Desktop.
Save Deep18-03/93f55b6098e4bc232af74faf18d4dbde to your computer and use it in GitHub Desktop.
l1=["cod","pung","counterstrike","minecraft"]
import time
# i=1
# for item in l1:
# if i%2 is not 0:
# print("jarvis select nuy this "+item)
localtime=time.asctime(time.localtime(time.time()))
#use enumerate
for index,items in enumerate(l1):
if index%2==0:
print("jarvis buy this "+items)
print(localtime)
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment