Computer Science, asked by kantanarula, 2 months ago

14. Which of the following is an example of List declaration in Python. O a . T=\ 1,2,3,4,5\ b. T = (1, 2, 3, 4, 5) c . T = [1, 2, 3, 4, 5] d. T = 1, 2, 3, 4, ​

Answers

Answered by robinphili24
1

Answer:

The answer is option (C)

Explanation:

You can create number lists in python like T = [1,2,3,4]

and String list like T = ["HI", "HELLO", "Bye"]

Please mark me as the brainliest.

Answered by krishna210398
0

Answer:

The answer is c . T = [1, 2, 3, 4, 5]

Explanation:

Python is a excessive-stage, interpreted, wellknown-purpose programming language. Its layout philosophy emphasizes code readability with the usage of full-size indentation.

Python is dynamically-typed and garbage-amassed. It supports a couple of programming paradigms, such as dependent (specifically procedural), object-orientated and purposeful programming. it is regularly defined as a "batteries covered" language because of its comprehensive popular library.

Guido van Rossum started out operating on Python within the past due 1980s as a successor to the ABC programming language and primary released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and added new functions along with list comprehensions, cycle-detecting rubbish collection, reference counting, and Unicode help. Python 3.0, released in 2008, changed into a chief revision that isn't completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Strategies

Methods on gadgets are capabilities connected to the item's class; the syntax instance.approach(argument) is, for regular methods and capabilities, syntactic sugar for class.technique(instance, argument). Python strategies have an express self parameter to get entry to example records, in comparison to the implicit self (or this) in some different object-oriented programming languages (e.g., C++, Java, objective-C, Ruby).Python additionally presents strategies, frequently referred to as dunder strategies (because of their names starting and finishing with double-underscores), to permit consumer-defined lessons to regulate how they are dealt with by means of local operations such as period, assessment, in arithmetic operations and kind conversion.

Which of the following is an example of List declaration in Python.

https://brainly.in/question/41558057

What is python

https://brainly.in/question/8049240

#SPJ2

Similar questions