Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Credentials:
- def __init__(self):
- self.ip = raw_input("Enter IP:")
- self.username = raw_input("Enter Username:")
- self.password = raw_input("Enter Password:")
- self.secret = raw_input("Enter Enable Secret:")
- self.port = raw_input("Enter Port Number:")
- #to run it, make an object
- credentials = Credentials()
- #now you can use the dot operator
- print(credentials.username)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement