Soru
1 1ist=[1,2,"3",4,5] 2 prin t(ty pe(l ist[2 3 "3" <class 'str'> list 5 2
Çözüm
4.1279 Voting
Engin
Profesyonel · 6 yıl öğretmeniUzman doğrulaması
Cevap
It looks like you're trying to print the type of the element at index 2 in the list `lst`. Here's the corrected code:<br /><br />```python<br />lst = [1, 2, "3", 4, 5]<br />print(type(lst[2]))<br />```<br /><br />When you run this code, it will output:<br /><br />```<br /><class 'tr'><br />```<br /><br />This output indicates that the type of the element at index 2 in the list `lst` is a string.
Derecelendirmek için tıklayın: