From babfab8ede28a1bdd2356be12569336ad5fc7b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Bence?= Date: Sun, 29 Mar 2020 17:36:55 +0200 Subject: [PATCH] small changes --- messagesender.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/messagesender.py b/messagesender.py index 0a86e5c..a6c0fef 100644 --- a/messagesender.py +++ b/messagesender.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -# IDE JÖNNEK IMPORTOK import random import string @@ -22,7 +21,6 @@ class MessageSender: """ Inicializálja az osztályt. """ - self.id = 0 pass @@ -32,20 +30,19 @@ class MessageSender: return ''.join(random.choice(letters) for i in range(stringLength)) - def CreateMessage(self, p) -> str: + def createMessage(self, p) -> str: """ Ez egy metodus :param szam: :param szoveg: :return: str tipus """ - self.id += random.randrange(10000) data = self.randomString(p) - return str(self.id) + " " + str(data) + return str(data) pass if __name__ == "__main__": temp = MessageSender() - print(temp.CreateMessage(20)) + print(temp.createMessage(20))