2483 Views
To check Key exist or not in Python, you can use in operator. user = { 'name':'Sheetal', 'company': 'Impulsive Web', 'role':'Tech Lead' } if 'role' in user: print('Exist') else: print('Not Exist') Output: Exist   You ...
Sheetal Kumar
Apr 24, 2019
Page 1 of 1 Pages       Total Records 1
  • First
  • Prev
  • 1
  • Next
  • Last