What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"} for i in a: print(i,end=" ")
निम्नलिखित Python कोड का आउटपुट क्या होगा?
a={1:"A",2:"B",3:"C"} print(a.items())
What will be the output of the following Python code snippet?
>>> a={1:"A",2:"B",3:"C"} >>> del a
निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?
total={} def insert(items): if items in total: total[items] += 1 else: total[items] = 1 insert('Apple') insert('Ball') insert('Apple') print (len(total))
a = {} a[1] = 1 a['1'] = 2 a[1]=a[1]+1 count = 0 for i in a: count += a[i] print(count)
numbers = {} letters = {} comb = {} numbers[1] = 56 numbers[3] = 7 letters[4] = 'B' comb['Numbers'] = numbers comb['Letters'] = letters print(comb)
test = {1:'A', 2:'B', 3:'C'} test = {} print(len(test))
test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
a = {} a[1] = 1 a['1'] = 2 a[1.0]=4 count = 0 for i in a: count += a[i] print(count) print(a)
निम्नलिखित Ptyhon कोड स्निपेट का आउटपुट क्या होगा?
a={} a['a']=1 a['b']=[2,3,4] print(a)
count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0 for i in count: tot=tot+count[i] print(len(count)+tot)
a={} a[2]=1 a[1]=[2,3,4] print(a[1][1])
a={'B':5,'A':9,'C':7} print(sorted(a))
a=dict() a[1]
The values of a dictionary can be accessed through the keys only if the keys exist in the dictionary.
KeyError: 1
What will be the output of the following Python expression?
print(round(4.576))
निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा?