Feb-23-2023, 06:46 AM
S = [['he', 'she'], 'has', ['1', '2'], 'watch']
A list inside the list S indicates a possibility of a statement.
So there are four possibilities here:
'he has 1 watch'
'he has 2 watch'
'she has 1 watch'
'she has 2 watch'
(Just for demonstration so it doesn't need to be grammatically correct)
I'm sure there's a simple way to list out all possibilities, but how? Any help would be much appreciated!
A list inside the list S indicates a possibility of a statement.
So there are four possibilities here:
'he has 1 watch'
'he has 2 watch'
'she has 1 watch'
'she has 2 watch'
(Just for demonstration so it doesn't need to be grammatically correct)
I'm sure there's a simple way to list out all possibilities, but how? Any help would be much appreciated!