What is the correct fix?
print("total: " + count)
- Wrap
countinstr() - Wrap
countinint() - Swap the two operands
- Use single quotes instead
Python will not concatenate str and int — convert, or use an f-string.
Play Problem Solving ▸
print("total: " + count)
count in str()count in int()