#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
- 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
Something went wrong.
Something went wrong.
United States Trends
- 1. FINALLY DID IT 590K posts
- 2. The JUP 351K posts
- 3. The PENGU 236K posts
- 4. Clinton 386K posts
- 5. #GoCanes 5,758 posts
- 6. #Caturday 3,869 posts
- 7. Good Saturday 34.1K posts
- 8. Texas A&M 14.9K posts
- 9. #GMMTVStarlympics2025 9.37M posts
- 10. Garnacho 30.3K posts
- 11. Reece James 31.1K posts
- 12. Vivek 55.4K posts
- 13. Newcastle 86.4K posts
- 14. Jack Doherty 1,298 posts
- 15. Arlovski 1,098 posts
- 16. GAME DAY 13.3K posts
- 17. #SaturdayVibes 4,797 posts
- 18. Rocco Becht N/A
- 19. Biff 3,697 posts
- 20. #outstanding 3,479 posts