Computer Science, asked by Ayas8278, 3 months ago

output of A='7'
print(A*4+str(int(A)*2))

Answers

Answered by allysia
2

Answer:

777714

Explanation:

  • String when multiplied with a number say a. It will be repeated 4 times. Here, A='7' and so A*4 will return '7777'.
  • int(A) converts A to integer type. And multiplying one integer with another returns product therefore, 7*2=14.
  • str(14) converts integer 14 to string.
  • + concatenates string. Therefore, '7777'+'14' will return 777714.
Similar questions