Ask Question

Stuff = []

stuff. append ("emu")

stuff. append ("frog")

stuff. append ("iguana")

print (stuff)

What data type are the elements in stuff?

+2
Answers (1)
  1. 8 May, 16:41
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers