Created
March 15, 2016 01:28
-
-
Save akhildevelops/694c289acb4d8678ae80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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