Skip to content

Instantly share code, notes, and snippets.

@Abhishek-Srivastava
Last active December 17, 2015 17:49
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 Abhishek-Srivastava/5648369 to your computer and use it in GitHub Desktop.
Save Abhishek-Srivastava/5648369 to your computer and use it in GitHub Desktop.
value = ["abhi", "cena", "dhoni", "bruce wayne"]
for j in range(4): print "Value number " + str(j) +" is "+value[j]
x=0
for j in range(10,0,-2):
x = x + j
print x
b=1
a=5
while (b<a):
print "b is less than a."
b=b+1
else:
print "b is equal to a now"
k=0
for j in range(0,10):
while(k < j):
print "j = " + str(j) + " k = "+str(k)
if (j == 1): break
k=k+1
print "j equals k or j equals 1"
a = ["abc","def","ghi"]
for x in a:
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment