I need to do this:
- create the function named
exampleThree, that will have three input parameters. - return the single string with element separated with
...
So for example, the text would need to go from: "I like dogs" ---> "I...like...dogs"
This is what I currently have but it is not working. It is telling me that a b and c "must be str, not int"
def exampleThree(a,b,c):
return a + "..." + b + "..." + c
Can I get assistance with this? Thanks.
return '...'.join((a,b,c)).exampleThree("I", "like", "dogs")as in your example?str:str(a) + "...." + str(b) + "..." + str(c)