Create a Python script which will accept a positive integer (n) and any character then it will display the input character n times.
Sample Output:
Positive Integer (n) : 7 Input any Character : A AAAAAAA
I need the code to have an output stated above.
print("Enter positive Integer (n): ", end='')
n = int(input())
print("Input any Character: ", end='')
ch = input()
print()
print(ch*n)
Comments
Leave a comment