example : When entering an integer 3 when , Output “333”; When entering other integers , Output “error”.
【 The sample input 】Enter a number:10
【 Sample output 】10101010101010101010
Really confused , Request answer .
because input The input is str type , So just multiply by n
n = input(" Input n")print(str(n)*int(n))