Commit 0db19457 by BellCodeEditor

save project

parent 67c48003
Showing with 12 additions and 6 deletions
dict={'sun':10000,'ice':-300}
print(dict)
val=dict.pop('ice')
print(dict)
print(val)
\ No newline at end of file
dict={'sun':10000,'ice':'-300'}
for k in dict:
print(k+':',end='')
print(dict[k])
for k in dict.keys():
print(k)
for v in dict.values():
print(v)
for k, v in dict.items():
print(k+':',end='')
print(v)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment