What will be the output of the following Python code?
x = ['ab', 'cd'] for i in x: i.upper() print(x)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)
i = 1 while True: if i%3 == 0: break print(i) i + = 1
i = 1 while True: if i%7 == 0: break print(i) i += 1
निम्नलिखित Python कोड का आउटपुट क्या होगा?
i = 1 while True: if i%2 == 0: break print(i) i += 2
i = 2 while True: if i%3 == 0: break print(i) i += 2
i = 1 while False: if i%2 == 0: break print(i) i += 2
i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)
i = 0 while i < 3: print(i) i += 1 else: print(0)
x = "abcdef" while i in x: print(i, end=" ")