Answer: 777 ( And 777 is a string not integer )
In the expression print(3 * ‘7’)
3 is integer
* is the multiplication operator
‘7’ is string
Rule: When we multiply an integer with a string, we get the same string concatenated by integer times. For example
str1 = "hi" # str1 is string
i = 4 # i is integer
str1 * i will give hihihihi
Let’s see the Python code:
print(3 * '7')
#ouput
# 777