#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
if 5 > 2: print("Python") print("quiz") ————————- A- Python B- quiz C- Python quiz D- Error #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
try: print(Python_quiz) except: print("Err") —————————— A- Python_quiz B- Error C- Err D- None #Python_quiz
a = ("Python") b = " quiz" print(a + b) ———————— A- ("Python") " quiz" B- (Python) quiz C- Python quiz C- Error #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
def x(): print("Daily") def x(): print("Pythin quiz") x() —————————— A- Daily Python quiz B- Daily C- Python quiz D- Error #Python_quiz #python
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
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
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
- 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= [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 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 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 = '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 = {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 = 1,2,3,4,5 print(type(Python_quiz)) ————————————— A- int B- Array C- Set D- Tuple #Python_quiz #Python
try: print(Python_quiz) except: print("Err") —————————— A- Python_quiz B- Error C- Err 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
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=[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
a = ("Python") b = " quiz" print(a + b) ———————— A- ("Python") " quiz" B- (Python) quiz C- Python quiz C- Error #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= "Python_quiz" y= ("Python_quiz") z=x==y print(z) —————————— A- Python_quiz B- True C- False D- Error #Python_quiz #Python
#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
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
-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
Something went wrong.
Something went wrong.
United States Trends
- 1. Lakers 93.2K posts
- 2. Luka 71K posts
- 3. Ayton 15.3K posts
- 4. Marcus Smart 8,620 posts
- 5. Curry 41.9K posts
- 6. Warriors 96.9K posts
- 7. Draymond 8,642 posts
- 8. Rockets 59.5K posts
- 9. Pharos 9,748 posts
- 10. Froot N/A
- 11. Reaves 9,268 posts
- 12. Double OT 6,757 posts
- 13. #DubNation 13.3K posts
- 14. Shai 34.1K posts
- 15. #DWTS 49.1K posts
- 16. Sengun 25.8K posts
- 17. Jimmy Butler 9,686 posts
- 18. #LakeShow 6,602 posts
- 19. Vando 3,099 posts
- 20. #TusksUp 1,116 posts