I made this function and I want to adapt it to take two parameters. One for the letter and one for the number. The function should print the appropriate amount of letters. (e.g. If the user types "monkey" and "3" the function will output "mon")
So far this is my code
word = input ("What is your word?")
number = input ("What is your number? ")
def test():
letter=word[0]
print (letter)
test()