#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
if 5 > 2: print("Python") print("quiz") ————————- A- Python B- quiz C- Python quiz D- Error #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
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
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
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
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,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
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=[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
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
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
Something went wrong.
Something went wrong.
United States Trends
- 1. Colts 48.8K posts
- 2. Rivers 61.1K posts
- 3. gaten 5,908 posts
- 4. Brock Purdy 17.7K posts
- 5. Niners 8,922 posts
- 6. #FTTB 6,815 posts
- 7. Adam the Woo 2,972 posts
- 8. Kittle 8,976 posts
- 9. Ballard 3,041 posts
- 10. DEE WINTERS 2,505 posts
- 11. #WWERaw 23.2K posts
- 12. Tonges 1,410 posts
- 13. #SFvsIND 2,260 posts
- 14. #ForTheShoe 2,493 posts
- 15. Dray 1,285 posts
- 16. Alec Pierce 3,640 posts
- 17. Jennings 15.8K posts
- 18. Jonathan Taylor 3,362 posts
- 19. Greenland 78.4K posts
- 20. #LADS2ndAnniversary 7,297 posts