Fix str

Report a typo

The previous developer accidentally named a variable str. Since this name is reserved for a built-in type, the code below fails. Rename the variable in the whole code snippet (there are 3 occurrences) so that it doesn't shadow the reserved name.

As a result, the value of the variable should be Hello10. Remember that the str() function returns the string version of the given object.

Write a program in Python 3
str = "Hello"
str = str + str(10)
print(str)
___

Create a free account to access the full topic