#π How to Build Real Projects!
43 messages Β· Page 1 of 1 (latest)
@inland silo
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.
do you understand what def does?
Hmm u just shocked, humans called it easiest lang but for me lack of consisteny and hard to find real work
I don't know what you mean. Do you need help understanding what and how to use def?
I learn what is def but using it where and how that a code works is hard
OK. Can you explain what you know about def so far? That way I will know where I can help explain how to use it properly
For example I make pratice code like a contect book, where I can add contacts, phone, name, gmail and view it and search it , as a begginer i dont build the easy stuff which people say a easy language
How did you make that practice code like a contact book app? Did you follow a tutorial or did you build it without looking at resources?
No resources just mind thought
Did you write it in Python?
Yes
Can you share the code? I'd like to review it
Wait
contacts = []
def add_contact(name, phone, gmail):
contact = {"name": name, "phone": phone, "gmail": gmail}
contacts.append(contact)
print(f"β
{name} added!")
add_contact("manprit", 8650*****, "manprit****@gmail.com")
There's I remove major code
Is that all?
Nop
OK so you got nearly the right idea of what a function does
But you do need to return the saved contacts list so that its reusable for other functions to use
That's block the code for other fun and lines
!learn π for a recommended resource if you wanna look at
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!
Automate boring stuff I already see this, but I didn't read it
If you prefer video courses, CS50P is really good
Anyways, do you want me to teach you how to use def properly?
If u can soo
Can we talkM
?
But do you want me to or do you want to follow the recommended learning courses instead?
Whatever I prefer to learn from the alive human
Can I dm u?
alright so let's look at fixing up the add_contact function. Do you understand what return keyword does?
Ooh soory for that but can u talk to me in voice way? I prefer it peaceful mindwork!?
My mic is not working. For some odd reason its not picking up audio properly π
Can you answer my question tho? Do you understand what return keyword does?
Sorry for now, I have to goo!
Thnx for ur help
Alright np
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.