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
4 Answers
+ 2
Thank you, I'll try it out and see how it goes. Thanks for your help
+ 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.
+ 1
I don't know how to start it
+ 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.