PyTutorial

Fix the Variables

#Problem Statement

The following code returns an error. Can you fix it so it prints "I love Python"?

python
part1 = "I love "
part2 = 3000

# TODO: Fix the concatenation error below
print(part1 + part2)
Hint: You cannot add a string and an integer directly.