#python_quiz search results
x=0 for i in range(2): for j in range(2): if i != j : x=x+1 x=x-2 print(x) —————————— A- 4 B- -4 C- 2 D- -2 #Python_quiz
def pyq(x): x[2]=20 y=[10,20,30] x=[0,5,10,15] pyq(y) print (y) ———————— A- [0,5,20,15] B- [0,20,10,15] C- [10,20,30] D- [10,20,20] #Python_quiz
x = '012' y = len(x) z =0 for i in x: y=y-1 z=z+int(i)*y print(z) ——————————— A- 1 B- 2 C- 3 D- 4 #Python_quiz
if 5 > 2: print("Python") print("quiz") ————————- A- Python B- quiz C- Python quiz D- Error #Python_quiz
for i in range(7): if i==3: continue elif i==5: break print(i) ————————— A- 0 1 2 B- 0 1 2 3 C- 0 1 2 4 D- 0 1 2 3 4 #Python_quiz
x=[1,2,3,4,5,6] x.clear() x.append(7) print(x) ———————— A- [1,2,3,4,5,7] B- [7,2,3,4,5,6] D- [7] C- None #Python_quiz
a = ("Python") b = " quiz" print(a + b) ———————— A- ("Python") " quiz" B- (Python) quiz C- Python quiz C- Error #Python_quiz
x= [1,2,3,4,3,2,1] x=list(dict.fromkeys(x)) x.pop(0) print(x) ————————— A- [1,2,3,4,3,2,1] B- [2,3,4,3,2] C- [2,3,4] D- [] #Python_quiz
try: print(Python_quiz) except: print("Err") —————————— A- Python_quiz B- Error C- Err D- None #Python_quiz
def x(): print("Daily") def x(): print("Pythin quiz") x() —————————— A- Daily Python quiz B- Daily C- Python quiz D- Error #Python_quiz #python
x=[1,2,3] x.append(4) x.insert(2,4) x.extend([5,6]) print(x) ————————— A- [1,2,3,4,2,4,5,6] B- [1,2,4,3,4,6] C- [1, 2, 4, 3, 4, 5, 6] D- None #Python_quiz
x = {0:'a',1:'b',2:'c'} for i in x.keys : print(i) —————————— A- 0 1 2 B- a b c C- Error D- None #Python_quiz
x= "Python_quiz" y= ("Python_quiz") z=x==y print(z) —————————— A- Python_quiz B- True C- False D- Error #Python_quiz #Python
Python_quiz = 1,2,3,4,5 print(type(Python_quiz)) ————————————— A- int B- Array C- Set D- Tuple #Python_quiz #Python
x = str(3)=="3" y = int(3)==3 z = float(3)==3.0 print(x) print(y) print(z) ————————— A- False True True B- All False C- All True D- None #Python_quiz
- Python Quiz Time - A = None B = ((1, 2, 3), []) C = [ [1 ,2 ,3 ,4] ,(1 ,2 ,3) ] D = [(1 ,2 ,3), []] #python #python_quiz #programming
-Python Quiz Time - A = index out of range B = 'temp value is here' C = Value Error D = 'temp value is here ' #python #python_quiz #programming
- Python Quiz Time - A = None B = ((1, 2, 3), []) C = [ [1 ,2 ,3 ,4] ,(1 ,2 ,3) ] D = [(1 ,2 ,3), []] #python #python_quiz #programming
x=1 for i in range (3): for j in range (i): x+=1 print(x) —————————— A- 1 B- 2 C- 3 D- 4 #Python_quiz
def pyq(x): x[2]=20 y=[10,20,30] x=[0,5,10,15] pyq(y) print (y) ———————— A- [0,5,20,15] B- [0,20,10,15] C- [10,20,30] D- [10,20,20] #Python_quiz
x = {0:'a',1:'b',2:'c'} for i in x.keys : print(i) —————————— A- 0 1 2 B- a b c C- Error D- None #Python_quiz
x=0 for i in range(2): for j in range(2): if i != j : x=x+1 x=x-2 print(x) —————————— A- 4 B- -4 C- 2 D- -2 #Python_quiz
x = str(3)=="3" y = int(3)==3 z = float(3)==3.0 print(x) print(y) print(z) ————————— A- False True True B- All False C- All True D- None #Python_quiz
if 5 > 2: print("Python") print("quiz") ————————- A- Python B- quiz C- Python quiz D- Error #Python_quiz
x= "Python_quiz" y= ("Python_quiz") z=x==y print(z) —————————— A- Python_quiz B- True C- False D- Error #Python_quiz #Python
try: print(Python_quiz) except: print("Err") —————————— A- Python_quiz B- Error C- Err D- None #Python_quiz
If you need to make an operation in each element of a #Python list, you can use map of list comprehension, can you think on other way to make it done? 🧠👀 #Python_quiz #pythonprogramming #DataScience #pythonlearning #MachineLearning #DataAnalytics #pythonchallenge #pythoncode
x=[1,2,3] x.append(4) x.insert(2,4) x.extend([5,6]) print(x) ————————— A- [1,2,3,4,2,4,5,6] B- [1,2,4,3,4,6] C- [1, 2, 4, 3, 4, 5, 6] D- None #Python_quiz
x=[1,2,3,4,5,6] x.clear() x.append(7) print(x) ———————— A- [1,2,3,4,5,7] B- [7,2,3,4,5,6] D- [7] C- None #Python_quiz
x = '012' y = len(x) z =0 for i in x: y=y-1 z=z+int(i)*y print(z) ——————————— A- 1 B- 2 C- 3 D- 4 #Python_quiz
x= [1,2,3,4,3,2,1] x=list(dict.fromkeys(x)) x.pop(0) print(x) ————————— A- [1,2,3,4,3,2,1] B- [2,3,4,3,2] C- [2,3,4] D- [] #Python_quiz
def x(): print("Daily") def x(): print("Pythin quiz") x() —————————— A- Daily Python quiz B- Daily C- Python quiz D- Error #Python_quiz #python
Whats the output? a= [1,2,3,4,5,6,7] odd, even = [i for i in a if i % 2==1], [i for i in a if i % 2==0] print("odd : ",odd) print("even : " , even) #Python_quiz
x=0 for i in range(2): for j in range(2): if i != j : x=x+1 x=x-2 print(x) —————————— A- 4 B- -4 C- 2 D- -2 #Python_quiz
def pyq(x): x[2]=20 y=[10,20,30] x=[0,5,10,15] pyq(y) print (y) ———————— A- [0,5,20,15] B- [0,20,10,15] C- [10,20,30] D- [10,20,20] #Python_quiz
x= [1,2,3,4,3,2,1] x=list(dict.fromkeys(x)) x.pop(0) print(x) ————————— A- [1,2,3,4,3,2,1] B- [2,3,4,3,2] C- [2,3,4] D- [] #Python_quiz
x = '012' y = len(x) z =0 for i in x: y=y-1 z=z+int(i)*y print(z) ——————————— A- 1 B- 2 C- 3 D- 4 #Python_quiz
if 5 > 2: print("Python") print("quiz") ————————- A- Python B- quiz C- Python quiz D- Error #Python_quiz
x=[1,2,3,4,5,6] x.clear() x.append(7) print(x) ———————— A- [1,2,3,4,5,7] B- [7,2,3,4,5,6] D- [7] C- None #Python_quiz
a = ("Python") b = " quiz" print(a + b) ———————— A- ("Python") " quiz" B- (Python) quiz C- Python quiz C- Error #Python_quiz
try: print(Python_quiz) except: print("Err") —————————— A- Python_quiz B- Error C- Err D- None #Python_quiz
for i in range(7): if i==3: continue elif i==5: break print(i) ————————— A- 0 1 2 B- 0 1 2 3 C- 0 1 2 4 D- 0 1 2 3 4 #Python_quiz
x=[1,2,3] x.append(4) x.insert(2,4) x.extend([5,6]) print(x) ————————— A- [1,2,3,4,2,4,5,6] B- [1,2,4,3,4,6] C- [1, 2, 4, 3, 4, 5, 6] D- None #Python_quiz
def x(): print("Daily") def x(): print("Pythin quiz") x() —————————— A- Daily Python quiz B- Daily C- Python quiz D- Error #Python_quiz #python
x = {0:'a',1:'b',2:'c'} for i in x.keys : print(i) —————————— A- 0 1 2 B- a b c C- Error D- None #Python_quiz
- Python Quiz Time - A = None B = ((1, 2, 3), []) C = [ [1 ,2 ,3 ,4] ,(1 ,2 ,3) ] D = [(1 ,2 ,3), []] #python #python_quiz #programming
Python_quiz = 1,2,3,4,5 print(type(Python_quiz)) ————————————— A- int B- Array C- Set D- Tuple #Python_quiz #Python
x= "Python_quiz" y= ("Python_quiz") z=x==y print(z) —————————— A- Python_quiz B- True C- False D- Error #Python_quiz #Python
x = str(3)=="3" y = int(3)==3 z = float(3)==3.0 print(x) print(y) print(z) ————————— A- False True True B- All False C- All True D- None #Python_quiz
#Python_QUIZ What will be the output of the following Python code? a) 1 2 3 b) error c) 1 2 d) none of the mentioned
Something went wrong.
Something went wrong.
United States Trends
- 1. Aaron Gordon 29.2K posts
- 2. Steph 68.4K posts
- 3. Jokic 23.7K posts
- 4. Good Friday 42K posts
- 5. Halle 21.6K posts
- 6. #criticalrolespoilers 14.1K posts
- 7. #EAT_IT_UP_SPAGHETTI 261K posts
- 8. Vikings 53.3K posts
- 9. Wentz 25.7K posts
- 10. Talus Labs 19.2K posts
- 11. Sven 7,858 posts
- 12. #LOVERGIRL 19.2K posts
- 13. Hobi 44.1K posts
- 14. Warriors 95.8K posts
- 15. Ronald Reagan 21.8K posts
- 16. #breachchulavista 1,361 posts
- 17. Megan 38.8K posts
- 18. Cupcakke 5,336 posts
- 19. Daniel Caesar 2,935 posts
- 20. Pacers 22.3K posts