0

Python core practice 4.2

X= input(hi) Y=input(5) Z = str(x)*int(y) Print(z) The output shows hi5hihihihi Instead of hihihihihi

18th Jan 2023, 2:10 PM
Amos Moono
Amos Moono - avatar
3 Answers
+ 5
don't pass any argument to input () x = input() y = input()
18th Jan 2023, 2:25 PM
Jayakrishna 🇼🇳
+ 3
# Python core practice 14.2 x = input() y = input() print(x*int(y))
18th Jan 2023, 2:29 PM
SoloProg
SoloProg - avatar
+ 3
Thanks guy
18th Jan 2023, 2:31 PM
Amos Moono
Amos Moono - avatar