How to do so that when you type the word, the word is repeated as many times as the number written by user???
Sist Try : First enter number second enter any word val_a = int(input()) val_b = str(input()) sofi = (val_a*val_b) print(sofi)
Thank you very much Prachi The Pari 🎸 Sist❤
Abhay no number 3 its decide people with input y = input() print(y*"Sololearn") It give error
But where should the word repeat? In console or in the string itself, or something else...
Sofi💕 input() returns a string ,you need to cast the result to int to be able to multiply strings print(int(y)*"Sololearn!")
Tnx Amir Borzabadi
print(int(input()) * input())
Can give you an example? Like what are the inputs and output you expect?
VAIBHAV KUMAR you write in c++ but thank you
🍂B. Eitan 🌵 Tnx
Himanshu give link please
Ashutosh Kumar Nice