Contact: aviboots(AT)netvision.net.il
39,855 questions
51,776 answers
573 users
dict = { 'python': 5, 'php': 3, 'java': 9, 'c++': 1 } if all(key in dict for key in ("python", "java")): print('yes') else: print('no') ''' run: yes '''
dict = { 'python': 5, 'c': 3, 'java': 9, 'c++': 1 } if {'python', 'c++', 'c'} <= dict.keys(): print('yes') else: print('no') ''' run: yes '''