1string = 'string'
2for i in range(11):
3 string += 'i'
4print string
5# It will print string 012345678910.
1#by chaing it's type using str() function
2
3# We have a string and a integer
4
5string1 = "superman"
6num1 = 20
7# concatenated string
8concatString = string1 + str(num1)
9print(concatString)
1# In python you need to cast the variable to a string with str()
2
3var = 3
4print('Variable = ' + str(var) )
1number = [1,2,3,4,5]
2
3number.reverse()
4# to concatenate strings and int
5# One needs to use str() to convert the string into int
6
7print("Reverse list: "+ str(number))
8