0

Hello to all python coders, i need urgent help with solving this problem regarding variables

Hello to all coders, i need urgent help with solving this problem, i am completelly kost You can use multiple variables to take multiple inputs for your program. For example, the following code takes two inputs and stores them in the variables x and y: x=input() y=input() Task: Given the code above, output the input x repeated y times. Sample Input: awesome 3 Sample Output: awesomeawesomeawesome

16th Dec 2021, 7:27 PM
tk myende
tk myende - avatar
7 Réponses
+ 2
Thank you, I'll try it out and see how it goes. Thanks for your help
16th Dec 2021, 7:45 PM
tk myende
tk myende - avatar
+ 2
This is very easy. You should to know the string multiplication. For example: print("h"*3) Output: hhh That's you need. I don't want tell you the complete program, you need to learn.
18th Dec 2021, 7:31 PM
CGO!
CGO! - avatar
+ 1
I don't know how to start it
16th Dec 2021, 7:36 PM
tk myende
tk myende - avatar
+ 1
Hi! You should think about two question: 1) what function do you use to print something in Python. 2) what operator do you use to multiplicate in Python.
16th Dec 2021, 11:07 PM
Per Bratthammar
Per Bratthammar - avatar