User Profile

Collapse

Profile Sidebar

Collapse
Ian Strawser
Ian Strawser
Last Activity: Oct 31 '11, 10:10 PM
Joined: Oct 31 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • #
    Code:
    class Encrypt(object):
     #The worst object ever created
        def __init__(self,alphabet):
            self.alphabet = alphabet
            self.trans = self.maketrans()
        
        def maketrans(self,x,translist):
            r = (random.randrange(0,len(self.alphabet)))
            if(x == len(self.alphabet)):
                return(translist)
            elif(r in translist):
                r = input("enter
    ...
    See more | Go to post

    Leave a comment:


  • Ian Strawser
    started a topic Error message...object cant find attribute

    Error message...object cant find attribute

    Code:
    class Encrypt(object):
     #The worst object ever created
        def __init__(self,alphabet):
            self.alphabet = alphabet
            self.trans = self.maketrans()
            self.count = -1
            self.translist = []
            
        def maketrans(self):
            x = (random.randrange(0,len(self.alphabet)))
            if(self.count == len(self.alphabet)):
                return(self.translist)
    ...
    See more | Go to post
    Last edited by bvdet; Oct 31 '11, 10:34 PM. Reason: Add code tags
No activity results to display
Show More
Working...