Say if I have the following:
mydict = {
a: 'A'
}
How do I check if key a
exists in the dictionary? Pseudocode below:
%if 'a' in mydict.keys()
${mydict['a']}
%endif
Say if I have the following:
mydict = {
a: 'A'
}
How do I check if key a
exists in the dictionary? Pseudocode below:
%if 'a' in mydict.keys()
${mydict['a']}
%endif
Copyright © 2021 Jogjafile Inc.
You can just use
in
: