📑 Task
1) What does the program do?2) Can you write a function based on the same splitting procedure
to sort letters in a word (vowels and consonants)?
📑 Answer
1) This program generates x (a list of 10 random integers between 0 and 9) andthen initializes two empty lists (not_in_x and in_x) to store digits
based on their presence in the list x.
2)
No comments:
Post a Comment