0

14.3 python multiple variables practice problem question help

Sample code: x = input () y = input () Sample input: awesome 3 Sample output: awesomeawesomeawesome Question: Given the code above, output the input x repeated y times.

10th Jan 2022, 9:26 PM
jordi carbajal
1 Answer
+ 3
Look at the lesson, there's an example of how to repeat a string. Mind that y needs to be an int()
10th Jan 2022, 9:32 PM
Lisa
Lisa - avatar