Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to tackle a 'str' not callable error message

State_city = (‘Abia’ + ‘Umuahia’)

Together = State_city

Print(Together)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’m practicing on pydroid3 and I want to print state_city but I keep getting error messages

I tried adding ‘ to the print syntax but it still won’t print. It keeps outputting ‘Str’ object is not callable.

>Solution :

What you have written is ‘print’ which is a string and not a function. Instead this is the correct way (I have refactored it too):

State_city = 'Abia' + 'Umuahia' # No need for parenthesis/brackets

Together = State_city

print(Together) # it is print and not 'Print'

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading