can anybody help me with this given assignment? "Write a function that takes as input the message (a string) and checks whether the number of characters is less than 160 or not. If the length of the message is less than 160, the message should be returned. If the length of the message is greater than 160, a string consisting of only the first 160 characters should be returned."
I am unsure how to design a program that prints a string consisting of only 160 letters if the amount of letters are above.