def append_x(a_string): if a_string: return a_string + 'x' return a_string
Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
Write a function
append_x that receives a string and appends the character
'X' to it ONLY if the string is not empty:
append_x('hello') # hellox append_x('') # ''