Printing a data list using the print function
Please when i try to run the code "Print(data_set.remove(21))" it keeps returning none on the code. please any explanation for this. 21 is included in the data_set
Thanks.
1 answers ( 0 marked as helpful)
Hey Abdulgafar,
Thank you for your question!
It returns None since you are not trying to print out data_set
but rather data_set.remove(21)
which is of type None:

Make sure you execute the code in the following way:

Hope this helps!
Kind regards,
365 Hristina