Post

Python Programming
Python Programming@PythonPr·
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
Python Programming tweet media
English
33
14
135
15.5K
Sergei Kotov
Sergei Kotov@kotov_dev·
@PythonPr Answer: A) list Square brackets [] = list! › Lists can hold mixed types (int, str, etc.) › Can have duplicates (1 appears twice) › Mutable and ordered For beginners: [] = list, () = tuple, {} = dict/set.
English
0
1
18
635
Earnest Codes
Earnest Codes@Earnesto037·
@PythonPr Answer: A) list The object L = [1,23, 'hello',1] is a list. In Python, a list is a data structure used to store an ordered collection of items, which are enclosed in square brackets [] and separated by commas. Lists are flexible and can contain elements
English
1
0
11
775
Dara
Dara@Izy_daraa·
@PythonPr List represented by [] in Python — can store different data types, could also have duplicates.
Dara tweet media
English
0
0
2
408
Biel Men
Biel Men@BielMenHaha·
@PythonPr Alternative A: list type The built-in does not have array class, like javascript. The list may have instances of different classes.
English
0
0
2
658
Kifayat Ullah
Kifayat Ullah@kifayat_ullah8·
@PythonPr List. because array one Data type store & List Multiple Data type store
English
0
0
1
427
Omo Yewa
Omo Yewa@AceKelm·
@PythonPr A. List. List takes in all data types.
English
0
0
1
287
KIJ_01
KIJ_01@engineer_kij·
@PythonPr unlike other programing lags, with python list use can add any data type
English
0
0
1
277
Paylaş