Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

repetition of word in python

#repeatition of the object n times
n=int(input('enter the number to be repeated='))
print('hello '*n)

#output:
enter the number to be repeated=
hello .. .....
 
PREVIOUS NEXT
Tagged: #repetition #word #python
ADD COMMENT
Topic
Name
8+7 =