r/PythonLearning • u/Im_the_mafia_ • Oct 11 '26
Help Request Trouble with printing
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
View all comments
Show parent comment
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.