The function you created also does not return anything, it only prints out information. Your append operation should happen when one of the conditions matches.
Oh, thanks Dmitry...This was really helpful. To be honest, i didn't quite understand the use of the return(statement), but your input helped me find out more. The code works fine now.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The function you created also does not return anything, it only prints out information. Your
append
operation should happen when one of the conditions matches.Oh, thanks Dmitry...This was really helpful. To be honest, i didn't quite understand the use of the return(statement), but your input helped me find out more. The code works fine now.