181k views
4 votes
Stuff = []

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

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

User Moaz Saeed
by
4.3k points

2 Answers

5 votes

Answer:

Stuffffffff

Step-by-step explanation:

STUFFFFFFFFFFFFf

User Kartik Patel
by
4.2k 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:

User Mashud
by
3.7k points