What will be the output of the following Python code?
x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")
निम्नलिखित Python कोड का आउटपुट क्या होगा?
x = "abcdef" i = "a" while i in x: x = x[1:] print(i, end = " ")
x = 'abcd' for i in x: print(i) x.upper()
x = 'abcd' for i in range(x): print(i)
x = 'abcd' for i in range(len(x)): print(i)
x = 'abcd' for i in range(len(x)): print(i.upper())
What will be the output of the following Python code snippet?
x = 'abcd' for i in range(len(x)): i.upper() print (x)
निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?
x = 'abcd' for i in range(len(x)): x[i].upper() print (x)
x = 'abcd' for i in range(len(x)): x = 'a' print(x)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
x = 'abcd' for i in range(len(x)): print(x) x = 'a'
d = {0: 'a', 1: 'b', 2: 'c'} for i in d: print(i)
d = {0: 'a', 1: 'b', 2: 'c'} for x, y in d.items(): print(x, y)
d = {0: 'a', 1: 'b', 2: 'c'} for x in d.keys(): print(d[x])
d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(x)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(d[x])
d = {0, 1, 2} for x in d.values(): print(x)
d = {0, 1, 2} for x in d: print(x)
d = {0, 1, 2} for x in d: print(d.add(x))
for i in range(0): print(i)
for i in range(2.0): print(i)