Skip to content

Instantly share code, notes, and snippets.

@akhildevelops
Created March 15, 2016 01:28
Show Gist options
  • Save akhildevelops/694c289acb4d8678ae80 to your computer and use it in GitHub Desktop.
Save akhildevelops/694c289acb4d8678ae80 to your computer and use it in GitHub Desktop.
class less:
"Print all the Numbers that are less than five"
def __init__(self,list,k=5):
self.l=list
self.k=k
def output(self):
print [i for i in self.l if i<self.k]
list=raw_input("List out Integers with single spacing")
k=input("Enter the ref number")
list=list.split()
list=map(int,list)
e=less(list,k)
e.output()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment