Question: Given the following code: string = 'success' d = { } for ch in letter: if ch not in d: d [ ch ] =
Given the following code:
string 'success'
d
for ch in letter:
if ch not in d:
dch
else:
dch
What is the value of d
Question options:
s : u:c: e:
r: u: n: e:
s: u: c: c: e:s:
s : u:c: e:s:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
