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​

2 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

Related questions

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

Browse Categories

...