What will be the output of the following Python code?
d = {0, 1, 2} for x in d: print(x)
निम्नलिखित Python कोड का आउटपुट क्या होगा?
for i in range(0): print(i)
for i in range(2.0): print(i)
for i in range(int(2.0)): print(i)
What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]: print (i)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
for i in ''.join(reversed(list('abcd'))): print (i)
for i in 'abcd'[::-1]: print (i)
x = 2 for i in range(x): x += 1 print (x)
निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?
x = 2 for i in range(x): x -= 2 print (x)
for i in range(10): if i == 5: break else: print(i) else: print("Here")