This commit is contained in:
s495724 2024-05-06 14:51:18 +02:00
parent 6e9112bc9b
commit cd8da4bdcd

View File

@ -0,0 +1,10 @@
class NaturalLanguageGeneration:
def __init__(self, name):
self.name = name
def respond_to_name_query(self, question):
if "jak masz na imię?" in question.lower():
return f"Nazywam się {self.name}."
else:
return "Nie rozumiem."