Ask Question
9 March, 20:36

Stuff = []

stuff. append ("emu")

stuff. append ("frog")

stuff. append ("iguana")

print (stuff)

What data type are the elements in stuff?

+5
Answers (1)
  1. 9 March, 21:20
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Stuff = [] stuff. append ("emu") stuff. append ("frog") stuff. append ("iguana") print (stuff) What data type are the elements in stuff? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers