What will be output of the following expressions?
#Considering Python 2.7
; ; ; print (‘Test’ * 3)
; ; ; print (‘7’+’8’)
Answers
Answered by
17
>>>print('test'*3)
output ➡️TestTestTest
>>>print('7'+'8')
output ➡️ 15
Answered by
9
Answer:
print('Test'*3) will output TestTestTest
print('7'+'8') will output 15
Explanation:
You should remove ;;; from beginning of lines, else it would trow error
Similar questions