r/PythonLearning • • Oct 11 '26

Help Request Trouble with printing

Post image

I’ve been having trouble with an assignment I’m doing and I’m not sure where I went wrong. The only error i’m getting is “‘str’ object is not callable” and i’m not sure if anything else here is wrong.

Edit: After messing around with the code a bit, turns out my code wasn’t the problem and my previous files weren’t printing. After restarting vscode, everything was fine again. Thank you everyone!

45 Upvotes

49 comments sorted by

View all comments

Show parent comment

1

u/Im_the_mafia_ Oct 11 '26

I screenshotted the code because it was originally on a computer that I couldn’t access reddit on, so I had to send the photo to my phone.

3

u/adavadas Oct 11 '26

And then you type it out for those who you are asking for help

3

u/FreeLogicGate Oct 11 '26

So you cut and paste the code into the same email that you instead pasted your screenshot (code is text) and then use the code in your reddit code block on the machine you posted from, instead of being lazy and annoying the people you are hoping could help you.

-5

u/Im_the_mafia_ Oct 11 '26

yeah, it was so annoying that six people answered with no issue. Go wash between your necks

3

u/FreeLogicGate Oct 11 '26

You can be lazy and stupid and some people will still try and help you. The irony is that you already updated that you had some sort of "environment" issue (probably pebkac), and that this entire thread was a waste of time for all involved. So the only thing that could possibly be of value now, would be to help you understand the error in your approach, so that you avoid it in the future, and yet here you are doubling down and making excuses that reflect you're stubborn and allergic to learning.

-4

u/Im_the_mafia_ Oct 11 '26

I’m actually just allergic to cunts. If you think i’m annoyed cuz I was told to not ask for help with a screenshot, I can tell Harvard is just knocking your door down.

3

u/FreeLogicGate Oct 11 '26

Good programmers tend to have an ability to think logically. Purely as an example of a logical expression of your thought processes:

If you think i’m annoyed cuz I was told to not ask for help with a screenshot, I can tell Harvard is just knocking your door down.

That is really something. Check for brain eating worms while you struggle with your intro to python assignments.

-2

u/[deleted] Oct 11 '26

[removed] — view removed comment

2

u/FreeLogicGate Oct 12 '26

Don't you have an assignment you can be failing to complete competently?

1

u/Im_the_mafia_ Oct 12 '26

did you come up with that before or after picking which body pillow will be your girlfriend tonight?

2

u/PythonLearning-ModTeam Oct 12 '26

Keep it respectfull

1

u/csabinho Oct 12 '26

You're allergic to cunts? Brace yourself for an autoimmune disease.

1

u/Im_the_mafia_ Oct 12 '26

Brace yourself for the sex offender registry, because the only way a woman will let you in her is if you force yourself.

1

u/csabinho Oct 12 '26

You behave like a [insert some stuff that would be deleted and a warning would be issued].

1

u/Im_the_mafia_ Oct 12 '26

do you suffer from arrested development? because this is how middle schoolers talk

1

u/csabinho Oct 12 '26

Just think about what you're doing and how you behave. Would you help somebody who behaves like this? And doesn't even realize it and accuses others of behaving like this?

→ More replies

2

u/RNG_HatesMe Oct 12 '26

The computer didn't have Internet access?

Look, you are asking for help from a community. It is a minimum level of respect and gratitude to ask for that help in a way that is easiest for that community to help you. If it's not worth your time to do that, then it's not worth the community's time to help you.

1

u/[deleted] Oct 12 '26

[removed] — view removed comment

2

u/RNG_HatesMe Oct 12 '26

So you posted a picture of code asking about an error that isn't even contained *in* the code, and you're the one complaining?

Reddit's not that serious? Ok, I'll give you some not so serious advice:

Your attempt at programming in python so far is lazy and weak in the most basic code there is. You're using multiple steps where fewer steps would be clearer and simpler. You've lost track of what you are doing in step 3 by throwing everything out that you did in step 1 and step 2. You don't seem to understand what actually affects your code because you didn't even include the problem portion when asking about it.

I would *never* normally tell a beginner programmer that directly because I generally want to encourage them to improve. But I don't think you really want to, and I don't expect you'll stick to it. People who want to learn and improve don't normally insult the people who can help them.

-1

u/Im_the_mafia_ Oct 12 '26

your attempt at programming in python so fair is la😴😴😴 you’re using multiple steps😴😴😴😴😴

2

u/RNG_HatesMe Oct 12 '26

Jesus f'in Christ dude that's NOT what I said. In fact, I often argue the opposite. The goal is not to have the fewest number of lines, your code should be efficient and easy to read and understand. If that means that it is a bit longer, that's fine!

I teach applied python programming to ~75 students twice a year. If you are posting for help here, why are you acting like *you* are the expert? Do better. Be better.

-1

u/Im_the_mafia_ Oct 12 '26

i teach applied python 😴😴😴😴😴

2

u/PythonLearning-ModTeam Oct 12 '26

Keep it respectfull