What will be the output of the following Python code snippet?
>>bool(‘False’) >>bool()
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
>>>bool(‘False’) >>>bool()
not(3>4) not(1&1)
not(10<20) and not(10>30)
What will be the output of the following Python code?
print('{a}{b}{a}'.format(a='hello', b='world'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
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=" ")
x = "abcdef" i = "i" while i in x: print(i, end=" ")
x = "abcdef" i = "a" while i in x: print(i, end = " ")
x = "abcdef" i = "a" while i in x: print('i', end = " ")
x = "abcdef" i = "a" while i in x: x = x[:-1] print(i, end = " ")