asked 181k views
4 votes
Stuff = []

stuff.append("emu")
stuff.append("frog")
stuff.append("iguana")

print (stuff)
What data type are the elements in stuff?

2 Answers

5 votes

Answer:

Stuffffffff

Step-by-step explanation:

STUFFFFFFFFFFFFf

answered
User Kartik Patel
by
8.4k points
5 votes

Answer:

stuff [] is a Python Array.

stuff [] informs python that it is an array and it will create a variable in the memory. However, It doesn't inform anything about data type that being stored in it.

Following snippet

stuff.append("emu")

stuff.append("frog")

stuff.append("iguana")

This will add these element information to the end of the array.

When you print stuff then it will print all the elements of the array. So Now, elements in the array are of datatype string.

Step-by-step explanation:

answered
User Mashud
by
8.3k points