Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #D1=[[22,23,24],[33,33,33],[56,57,58]]
- #D2=[[22,23,24],[33,33,33],[56,57,58]]
- #CL1=[[1,2,3],[4,5,6],[33,34,35],[78,79,80]]
- #CL2=[33,34,35]
- def uguale(D1,D2):
- #@param D1,D2: list (of colors)
- if len(D1) != len(D2):
- return false
- for i in range(0,len(D1)):
- if D1[i] != D2[i]:
- return false
- return true
- #ANCHE IN QUESTO ESERCIZIO mi sono perso nell'agitazione
- def univ_uguale(CL1,CL2):
- #@ param CL1 : list (of colors)
- #@ param CL2 : list (of color)
- for i in range(0,len(CL1) - len(CL2)+1):
- if uguale(CL1[i:][i] , CL2):
- return true
- return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement