Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
Anurag aghara '''n times multiplying a String with integer the string is printed n number of times if n is 0 then the string is empty ''' p='Anurag' print ('string = ',p*2) print ('string = ',p*1) print ('string = ',p*0) #now empty so no output
26th Apr 2019, 7:40 AM
Daljeet Singh
Daljeet Singh - avatar