Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def concati(s, i):
- """
- Return a string that is s concatenated to itself i times.
- If i<1, the result is a null string.
- If i is a large value, may the lord have mercy on your soul.
- """
- result=""
- for j in range(1, i+1):
- result=result + s
- return result
- n=5
- for i in range(1, n+1):
- print concati("*", i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement