4 Answers
+ 6
Sure, but what will be the keys then?
+ 6
Hmm... maybe like this?
i = 0
d = {}
n = ""
while 1:
n = input()
if n == "":
break
d[i] = n
i += 1
print(d)
# dictionary is an unordered set, so you can do a trick and add the keys which are ordered. So that you can iterate them later in the same order the entries were added
0
Kay's and it's value should be anything I just want how to gets values via looping that's set .
0
thanks alots