SHARE
TWEET

Untitled

a guest Nov 17th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import re
  2.  
  3. class SystemDecyzyjny:
  4.  
  5.     def printFile(self):
  6.         f = open(self)
  7.         print(f.read())
  8.  
  9.     def splitIntoLines(self):
  10.         return re.split(r'\n', self)
  11.  
  12.     def getNAttribute(self):
  13.         whichAttribute = 0
  14.         intArray=list.insert()
  15.         for i in self:
  16.             if 'n' in i:
  17.                 print(i)
  18.  
  19. def main():
  20.     SystemDecyzyjny.printFile("australian-type.txt")
  21.     array = SystemDecyzyjny.splitIntoLines(open("australian-type.txt").read())
  22.     print(array)
  23.  
  24.     SystemDecyzyjny.getNAttribute(array)
  25.  
  26. if __name__ == "__main__":
  27.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top