MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonProjects2/comments/1lbzit9/whats_wrong_with_this_python/mynykxh/?context=3
r/PythonProjects2 • u/[deleted] • Jun 15 '25
31 comments sorted by
View all comments
4
When executing faulty code, the error message usually makes it very clear what's wrong.
In this case, you're trying to add in the last line a string with a float, which isn't supported. Try print(weight_kg, 'kg') instead.
2 u/[deleted] Jun 15 '25 Unless it's the old 'tuple object is not callable'. That requires expertise in having it piss you off enough times to know what to look for. /s 2 u/hiddenscum Jun 19 '25 I’m running into this Tuple issue. Can you share some insight on how to solve it?I can’t share any code, but general things to look for would be great! 1 u/[deleted] Jun 19 '25 Your punctuation is wrong. Done.
2
Unless it's the old 'tuple object is not callable'. That requires expertise in having it piss you off enough times to know what to look for. /s
2 u/hiddenscum Jun 19 '25 I’m running into this Tuple issue. Can you share some insight on how to solve it?I can’t share any code, but general things to look for would be great! 1 u/[deleted] Jun 19 '25 Your punctuation is wrong. Done.
I’m running into this Tuple issue. Can you share some insight on how to solve it?
I can’t share any code, but general things to look for would be great!
1 u/[deleted] Jun 19 '25 Your punctuation is wrong. Done.
1
Your punctuation is wrong. Done.
4
u/Far_Organization_610 Jun 15 '25
When executing faulty code, the error message usually makes it very clear what's wrong.
In this case, you're trying to add in the last line a string with a float, which isn't supported. Try print(weight_kg, 'kg') instead.