(Solved) : Use Python 27 Write Function Called Addntimes Value N Adds Provided Value Onto N Times Exa Q35536508
Use python 2.7
Write a function called add_n_times( value, n ) that “adds” theprovided value onto itself n times. For example, add_n_times( 10, 5) should print out the value 50, since 10 added onto itself fivetimes is 10 + 10 + 10 + 10 + 10 = 50. On the other hand, withstrings, add operation behaves differently, but we need not worry,because when we add strings together using the “+” operator, weconcatenate them. Therefore, if we call add_n_times( “Hello”, 3 )the value “HelloHelloHello” should be printed out.