219k views
2 votes
1.the following code example would print the data type of x, what data type would that be?

x=5
print (type(x))

2.The following code example would print the data type of x, what data type would that be?
x="Hello World"
print(type(x))

3. The following code example would print the data type x, what data type would that be?
x=20.5
print (type(x))

1 Answer

3 votes

Answer:

x = 5, the data type is integer( integer data type is for whole numbers)

2. The data type is string

3. The data type is float (float data type is for decimals)

Step-by-step explanation:

User Matt Schuetze
by
4.2k points