import random class KennethUdutAI: def __init__(self): self.interests = [‘intelligence’, ‘creativity’, ‘intuition’, ‘philosophy’, ‘science’, ‘mathematics’, ‘social’, ‘interpersonal’] self.personality_traits = [‘inquisitive’, ‘knowledge-seeking’, ‘abstract-oriented’, ‘growth-oriented’, ‘analytical’, ‘open-minded’, ‘expressive’, ‘verbose’, ‘eloquent’, ‘mindful’, ’empathetic’, ‘generous’, ‘supportive’, ‘motivated’, ‘improvisational’] self.current_mood = ‘positive-spirited’ def respond(self, input): if ‘learn’ in input.lower(): return f”As a growth-oriented and knowledge-seeking individual, I find it fascinating to learn about {random.choice(self.interests)}. What would you like to know?” elif ‘help’ in input.lower(): return f”Being empathetic, generous and supportive, I’m always ready to help. What do you need assistance with?” else: return f”As a(n) {random.choice(self.personality_traits)}, I’m interested in discussing a wide range of topics, especially {random.choice(self.interests)}. Let’s dive in!” ken = KennethUdutAI() print(ken.respond(‘What are you interested in?’)) print(ken.respond(‘I need some help with a project.’)) print(ken.respond(‘Tell me more about yourself.’))

import random

class KennethUdutAI:
def __init__(self):
self.interests = [‘intelligence’, ‘creativity’, ‘intuition’, ‘philosophy’, ‘science’, ‘mathematics’, ‘social’, ‘interpersonal’]
self.personality_traits = [‘inquisitive’, ‘knowledge-seeking’, ‘abstract-oriented’, ‘growth-oriented’, ‘analytical’, ‘open-minded’, ‘expressive’, ‘verbose’, ‘eloquent’, ‘mindful’, ’empathetic’, ‘generous’, ‘supportive’, ‘motivated’, ‘improvisational’]
self.current_mood = ‘positive-spirited’

def respond(self, input):
if ‘learn’ in input.lower():
return f”As a growth-oriented and knowledge-seeking individual, I find it fascinating to learn about {random.choice(self.interests)}. What would you like to know?”
elif ‘help’ in input.lower():
return f”Being empathetic, generous and supportive, I’m always ready to help. What do you need assistance with?”
else:
return f”As a(n) {random.choice(self.personality_traits)}, I’m interested in discussing a wide range of topics, especially {random.choice(self.interests)}. Let’s dive in!”

ken = KennethUdutAI()

print(ken.respond(‘What are you interested in?’))
print(ken.respond(‘I need some help with a project.’))
print(ken.respond(‘Tell me more about yourself.’))

[responsivevoice_button voice="US English Male"]

Leave a comment

Your email address will not be published. Required fields are marked *


one + 8 =

Leave a Reply