#π Can someone help me with my project (chatbot), because im a begginer?
25 messages Β· Page 1 of 1 (latest)
@prime raft
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
How much Python do you know?
I know the basics and I started 1 week ago
Have you made anything before this chatbot project of yours? Its a bit advanced for someone who just finished basics
like what? Any projects involving use of class?
Only with print, input and one if
yea thats definitely not enough
Do you at least know how to write a function and a class? @prime raft
A function yes, but what is class?
A class allows you to put multiple functions into one and be able to reuse it, like an entity or an object that has the properties and functions that make sense to it...
Since you had to ask what a class is, you'll definitely need to follow a proper tutorial
!learn from one of the recommended resource below π
Here are the top free resources we recommend for people who are new to programming:
- Automate the Boring Stuff β an online book (also available to purchase as a physical book)
- Harvardβs CS50P course β video lectures (slides and notes provided) with exercises
- Python Programming MOOC 2026 course β text-based lessons with exercises
- Corey Schafer's YouTube playlist
For a full, curated list of educational resources we recommend, please see our resources page!
so in your case, you could have a class about your chatbot that handles and refers queries in a session... something like:
class Chatbot:
def __init__(self, name):
self.name = name
def on_message(self, message):
"if message is from user respond"
if message.user != self:
return respond("Hi")
Something like that (which this code doesn't work btw but its a simplified rough idea)
Ohh ok, thx
I'm gonna learn more for class and later this day I will text here again for more
See you then
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.