Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
–1 vote
2 views
in Python by (55.6k points) 1 flag

a. numbers

b. string

c. list​

3 Answers

+1 vote
by (119k points)

The answer is option A numbers and B String. In Python, number datatype is not there but python use int to define a variable for numbers. Also, there is no string data type in Python instead has str datatype to define a string variable.

a = 1234

print("Type of a:", type(a))

b = "abcd"

print("Type of b:", type(b))

output:

Type of a: <class 'int'>

Type of b: <class 'str'>

I suggest this Python Tutorial by Intellipaat to learn more about Datatypes in Python.

Also, watch this video on Python data types:

Wanna become an Expert in python? Come & join our Python Certification course

0 votes
by (140 points)
my answer is c. list
0 votes
ago by (1.9k points)

The correct answer is  none of the above since, above all these are Python supported data types. Here Python supports varied kinds of data types such as numbers or more precisely integers and float are some of its basic requirements in order to provide each type of numerical calculation. Finally, strings that denote to any text values may provide numerous variations of data processing so for instance strings could even be sliced and joined altogether. In addition, lists are the built-in data types in Python. These are used to store an ordered collection of items that can be of mixed type. Therefore, all three options- numbers, strings, and lists are built-in data types in Python.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...