I Am Very Excited!!!!!!!#
Write a function exclaim
that takes a string and a integer, and produces that string with a number of exclamation marks after it equal to the given integer. You only need to consider cases where the number is 0 or greater (no negative numbers).
For example, exclaim("Hey", 4)
should produce "Hey!!!!"
Hint: An interesting trick with Python strings is that you can multiply a string by a number to replicate the string that many times. For example:
>>> "na" * 4
'nananana'
Sample Input 1:
Hey 4
Sample Output 1:
Hey!!!!
Sample Input 2:
Hey 0
Sample Output 2:
Hey
Sample Input 3:
! 2
Sample Output 3:
!!!
Sample Input 4:
Ah 1
Sample Output 4:
Ah!