0
How do i multiply a string in python ,hmm like (hi) by like any number ?
Sorry mates im new
8 Respuestas
+ 3
print("hi" * 4)
Output: hihihihi
+ 2
😭 thank you mates
+ 1
Ok so how do i multiply hi by like 20 or something , thank u mates
+ 1
Mario print ("hi" * 20)
+ 1
Thanks triz😬
0
Oh yeah thanks , but what about like i want to multiply hi by 20 so the output is hihhihi 20 times u know
0
So u can multiply “hi” (hi is a word that known as a ‘string’ ) by any integer from 1 onwards
0
Happy days