asked 15.1k views
1 vote
What is the data type of the variable named my_variable at the end of the program below?

my_variable = "Hello"
print(my_variable)
for i in range(0, 6):
my_variable = i
print(my_variable)

asked
User JChao
by
7.8k points

1 Answer

2 votes

Answer:

Integer

Step-by-step explanation:

If you want to check the type of a data type in Python, simply use the type module. For example print(type(my_variable)) will output int

answered
User Viker
by
7.5k points

No related questions found