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
A A A A A A A
n = int(input("Enter N : "))
c = str(input("Enter a character: "))
s=""
for r in range(0,n):
s = s + c
print(s)
Comments
Leave a comment