State_city = (‘Abia’ + ‘Umuahia’)
Together = State_city
Print(Together)
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'