Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite3 Réponses
+ 6
#Try this
x=input()
y=input()
z=str(x)*int(y)
print(z)
0
Code is correct, the output should be hihihihihi. Try once more and use y=int(input()) directly, though it does not make any difference.
0
x = "hi"
y = 5
print( str(x) * int(y))